Package com.auth0
Class Tokens
java.lang.Object
com.auth0.Tokens
- All Implemented Interfaces:
Serializable
Wrapper for the the user's credentials returned by Auth0.
- accessToken: Access Token for Auth0 API
- idToken: Identity Token with user information
- refreshToken: Refresh Token that can be used to request new tokens without signing in again
- type: Token Type
- expiresIn: Token expiration
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the Access Token.Getter for the Expiration time of the Token.Getter for the Id Token.Getter for the Refresh Token.getType()
Getter for the token Type .
-
Constructor Details
-
Tokens
- Parameters:
accessToken
- access token for Auth0 APIidToken
- identity token with user informationrefreshToken
- refresh token that can be used to request new tokens without signing in againtype
- token typeexpiresIn
- token expiration
-
-
Method Details
-
getAccessToken
Getter for the Access Token.- Returns:
- the Access Token.
-
getIdToken
Getter for the Id Token.- Returns:
- the Id Token.
-
getRefreshToken
Getter for the Refresh Token.- Returns:
- the Refresh Token.
-
getType
Getter for the token Type .- Returns:
- the Type of the token.
-
getExpiresIn
Getter for the Expiration time of the Token.- Returns:
- the expiration time.
-