Package org.forgerock.am.oauth2
Class AccessTokenRequest
- java.lang.Object
-
- org.forgerock.am.oauth2.AccessTokenRequest
-
@Immutable public class AccessTokenRequest extends Object
Encapsulates all relevant data necessary to represent a request for a new access token.- Since:
- 7.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccessTokenRequest.BuilderAccess token request builder.static classAccessTokenRequest.GrantType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessTokenRequest.Builderbuilder()Provides a builder instance to help construct a new access token request.StringgetClientId()Gets the non-null OAuth2 client id.StringgetClientSecret()Gets the non-null OAuth2 client secret.AccessTokenRequest.GrantTypegetGrantType()RealmgetRealm()Gets the non-null realm context in which an access token should be produced.RequestgetRequest()Gets the originalRequestthat prompted this request for an access token.Set<String>getScopes()Gets the non-null available set of scopes.StringgetSubject()
-
-
-
Method Detail
-
getRealm
public Realm getRealm()
Gets the non-null realm context in which an access token should be produced.- Returns:
- the non-null realm context
-
getClientId
public String getClientId()
Gets the non-null OAuth2 client id.- Returns:
- the non-null client id
-
getClientSecret
public String getClientSecret()
Gets the non-null OAuth2 client secret.- Returns:
- the non-null client secret
-
getScopes
public Set<String> getScopes()
Gets the non-null available set of scopes.- Returns:
- the non-null set of scopes
-
getRequest
public Request getRequest()
Gets the originalRequestthat prompted this request for an access token.- Returns:
- the non null request.
-
getSubject
public String getSubject()
-
getGrantType
public AccessTokenRequest.GrantType getGrantType()
-
builder
public static AccessTokenRequest.Builder builder()
Provides a builder instance to help construct a new access token request.- Returns:
- a builder instance
-
-