Class GrantRequest
java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
- Direct Known Subclasses:
RefreshAccessTokenGrantRequest,ResourceOwnerPasswordCredentialsGrantRequest
The GrantRequest class provides the base class that all OAuth2 grant request classes
should be derived from.
- Author:
- Marcus Portmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the client ID parameter.static final StringThe name of the client secret parameter.static final StringThe name of the grant type parameter.static final StringThe name of the parameter providing the requested access token scope.static final StringThe name of the state parameter. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLIENT_ID_PARAMETER
The name of the client ID parameter.This parameter is REQUIRED if client authentication is enabled.
- See Also:
-
CLIENT_SECRET_PARAMETER
The name of the client secret parameter.This parameter is REQUIRED if client authentication is enabled.
- See Also:
-
GRANT_TYPE_PARAMETER
The name of the grant type parameter.This parameter is REQUIRED.
- See Also:
-
SCOPE_PARAMETER
The name of the parameter providing the requested access token scope.This parameter is OPTIONAL.
- See Also:
-
STATE_PARAMETER
The name of the state parameter.This parameter is OPTIONAL.
- See Also:
-
-
Constructor Details
-
GrantRequest
Constructs a new GrantRequest.- Parameters:
parameters- the request parameters
-
-
Method Details
-
getClientId
Returns the client identifier issued to the client.- Returns:
- the client identifier issued to the client
-
getClientSecret
Returns the client secret.- Returns:
- the client secret
-
getGrantType
Returns the grant type.- Returns:
- the grant type
-
getScope
Returns the requested scope(s) for the access request.- Returns:
- the requested scope(s) for the access request
-
getState
Returns the state received from the client.- Returns:
- the state received from the client
-