Class RefreshAccessTokenGrantRequest
java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
africa.absa.inception.oauth2.server.authorization.controller.RefreshAccessTokenGrantRequest
The RefreshAccessTokenGrantRequest class holds the information for a Refresh Access Token
Grant request.
- Author:
- Marcus Portmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe grant type for the Refresh Access Token Grant.static final StringThe name of the refresh token parameter.Fields inherited from class africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
CLIENT_ID_PARAMETER, CLIENT_SECRET_PARAMETER, GRANT_TYPE_PARAMETER, SCOPE_PARAMETER, STATE_PARAMETER -
Constructor Summary
ConstructorsConstructorDescriptionRefreshAccessTokenGrantRequest(Map<String, String> parameters) Constructs a new RefreshAccessTokenGrantRequest. -
Method Summary
Methods inherited from class africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
getClientId, getClientSecret, getGrantType, getScope, getState
-
Field Details
-
GRANT_TYPE
The grant type for the Refresh Access Token Grant.- See Also:
-
REFRESH_TOKEN_PARAMETER
The name of the refresh token parameter.This parameter is REQUIRED.
- See Also:
-
-
Constructor Details
-
RefreshAccessTokenGrantRequest
Constructs a new RefreshAccessTokenGrantRequest.- Parameters:
parameters- the request parameters
-
-
Method Details
-
isValid
Check whether the required information for the Resource Owner Password Credentials Grant is provided as part of the HTTP servlet request.- Parameters:
parameters- the request parameters- Returns:
- true if the HTTP servlet request contains the required information for the Resource Owner Password Credentials Grant or false otherwise
-
getRefreshToken
Returns the refresh token.- Returns:
- the refresh token
-