-
public class Credentials
Holds the user's credentials returned by Auth0.
idToken: Identity Token with user information
accessToken: Access Token for Auth0 API
refreshToken: Refresh Token that can be used to request new tokens without signing in again
type: The type of the received Access Token.
expiresAt: The token expiration date.
scope: The token's granted scope.
-
-
Field Summary
Fields Modifier and Type Field Description private String
recoveryCode
private final UserProfile
user
private final String
idToken
private final String
accessToken
private final String
type
private final String
refreshToken
private final Date
expiresAt
private final String
scope
-
Method Summary
Modifier and Type Method Description String
toString()
final String
getRecoveryCode()
Getter for the new multi-factor authentication recovery code. final UserProfile
getUser()
final String
getIdToken()
Getter for the Identity Token with user information. final String
getAccessToken()
Getter for the Access Token for Auth0 API. final String
getType()
Getter for the type of the received Token. final String
getRefreshToken()
Getter for the Refresh Token that can be used to request new tokens without signing in again. final Date
getExpiresAt()
Getter for the expiration date of the Access Token. final String
getScope()
Getter for the access token's granted scope. final Unit
setRecoveryCode(@SerializedName(value = "recovery_code") String recoveryCode)
-
-
Method Detail
-
getRecoveryCode
final String getRecoveryCode()
Getter for the new multi-factor authentication recovery code. Only available if these credentials are the result of logging in using an MFA recovery code.
-
getUser
final UserProfile getUser()
-
getIdToken
final String getIdToken()
Getter for the Identity Token with user information.
-
getAccessToken
final String getAccessToken()
Getter for the Access Token for Auth0 API.
-
getRefreshToken
final String getRefreshToken()
Getter for the Refresh Token that can be used to request new tokens without signing in again.
-
getExpiresAt
final Date getExpiresAt()
Getter for the expiration date of the Access Token. Once expired, the Access Token can no longer be used to access an API and a new Access Token needs to be obtained.
-
getScope
final String getScope()
Getter for the access token's granted scope. Only available if the requested scope differs from the granted one.
-
setRecoveryCode
final Unit setRecoveryCode(@SerializedName(value = "recovery_code") String recoveryCode)
-
-
-
-