Package org.forgerock.am.oauth2
Class AccessTokenRequest
java.lang.Object
org.forgerock.am.oauth2.AccessTokenRequest
Encapsulates all relevant data necessary to represent a request for a new access token.
- Since:
- 7.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Access token request builder.static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessTokenRequest.Builder
builder()
Provides a builder instance to help construct a new access token request.Gets the non-null OAuth2 client id.Gets the non-null OAuth2 client secret.getRealm()
Gets the non-null realm context in which an access token should be produced.Gets the originalRequest
that prompted this request for an access token.Gets the non-null available set of scopes.
-
Method Details
-
getRealm
Gets the non-null realm context in which an access token should be produced.- Returns:
- the non-null realm context
-
getClientId
Gets the non-null OAuth2 client id.- Returns:
- the non-null client id
-
getClientSecret
Gets the non-null OAuth2 client secret.- Returns:
- the non-null client secret
-
getScopes
Gets the non-null available set of scopes.- Returns:
- the non-null set of scopes
-
getRequest
Gets the originalRequest
that prompted this request for an access token.- Returns:
- the non null request.
-
getSubject
-
getGrantType
-
builder
Provides a builder instance to help construct a new access token request.- Returns:
- a builder instance
-