Package org.forgerock.am.oauth2
Class AccessTokenResponse
java.lang.Object
org.forgerock.am.oauth2.AccessTokenResponse
Encapsulates the minted access token along with its contextual data.
- Since:
- 7.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Access token response builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessTokenResponse.Builder
builder()
Provides a builder instance to help construct a new access token response.Gets the non-null access token.Gets the non-null expires in duration which is the actual time in millis when the token will expire.Gets the scopes associated with the access token.Gets the non-null token type.
-
Method Details
-
getAccessToken
Gets the non-null access token.- Returns:
- the non-null access token
-
getTokenType
Gets the non-null token type.- Returns:
- the non-null token type
-
getExpiresIn
Gets the non-null expires in duration which is the actual time in millis when the token will expire.- Returns:
- the non-null expires in duration
-
getScopes
Gets the scopes associated with the access token.- Returns:
- the set of scopes associated with the access token
-
builder
Provides a builder instance to help construct a new access token response.- Returns:
- a builder instance
-