Class RefreshAccessTokenGrantRequest
- java.lang.Object
-
- africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
-
- africa.absa.inception.oauth2.server.authorization.controller.RefreshAccessTokenGrantRequest
-
public class RefreshAccessTokenGrantRequest extends GrantRequest
The RefreshAccessTokenGrantRequest class holds the information for a Refresh Access Token Grant request.- Author:
- Marcus Portmann
-
-
Field Summary
Fields Modifier and Type Field Description static StringGRANT_TYPEThe grant type for the Refresh Access Token Grant.static StringREFRESH_TOKEN_PARAMETERThe 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
Constructors Constructor Description RefreshAccessTokenGrantRequest(Map<String,String> parameters)Constructs a new RefreshAccessTokenGrantRequest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRefreshToken()Returns the refresh token.static booleanisValid(Map<String,String> parameters)Check whether the required information for the Resource Owner Password Credentials Grant is provided as part of the HTTP servlet request.-
Methods inherited from class africa.absa.inception.oauth2.server.authorization.controller.GrantRequest
getClientId, getClientSecret, getGrantType, getScope, getState
-
-
-
-
Field Detail
-
GRANT_TYPE
public static final String GRANT_TYPE
The grant type for the Refresh Access Token Grant.- See Also:
- Constant Field Values
-
REFRESH_TOKEN_PARAMETER
public static final String REFRESH_TOKEN_PARAMETER
The name of the refresh token parameter.This parameter is REQUIRED.
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public static boolean isValid(Map<String,String> parameters)
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
public String getRefreshToken()
Returns the refresh token.- Returns:
- the refresh token
-
-