Package com.nimbusds.oauth2.sdk
Class RefreshTokenGrant
java.lang.Object
com.nimbusds.oauth2.sdk.AuthorizationGrant
com.nimbusds.oauth2.sdk.RefreshTokenGrant
Refresh token grant. Used in refresh token requests.
Related specifications:
- OAuth 2.0 (RFC 6749)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRefreshTokenGrant(RefreshToken refreshToken) Creates a new refresh token grant. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the refresh token.inthashCode()static RefreshTokenGrantParses a refresh token grant from the specified request body parameters.Returns the request body parameters for the authorisation grant.Methods inherited from class com.nimbusds.oauth2.sdk.AuthorizationGrant
getType
-
Field Details
-
GRANT_TYPE
The grant type.
-
-
Constructor Details
-
RefreshTokenGrant
Creates a new refresh token grant.- Parameters:
refreshToken- The refresh token. Must not benull.
-
-
Method Details
-
getRefreshToken
Gets the refresh token.- Returns:
- The refresh token.
-
toParameters
Description copied from class:AuthorizationGrantReturns the request body parameters for the authorisation grant.- Specified by:
toParametersin classAuthorizationGrant- Returns:
- The parameters.
-
equals
-
hashCode
-
parse
Parses a refresh token grant from the specified request body parameters.Example:
grant_type=refresh_token refresh_token=tGzv3JOkF0XG5Qx2TlKWIA
- Parameters:
params- The parameters.- Returns:
- The refresh token grant.
- Throws:
ParseException- If parsing failed.
-