@Immutable public class RefreshTokenGrant extends AuthorizationGrant
Note that the optional scope parameter is not supported.
Related specifications:
Modifier and Type | Field | Description |
---|---|---|
static GrantType |
GRANT_TYPE |
The grant type.
|
Constructor | Description |
---|---|
RefreshTokenGrant(RefreshToken refreshToken) |
Creates a new refresh token grant.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
RefreshToken |
getRefreshToken() |
Gets the refresh token.
|
int |
hashCode() |
|
static RefreshTokenGrant |
parse(Map<String,String> params) |
Parses a refresh token grant from the specified parameters.
|
Map<String,String> |
toParameters() |
Return the parameters for the authorisation grant.
|
getType
public static final GrantType GRANT_TYPE
public RefreshTokenGrant(RefreshToken refreshToken)
refreshToken
- The refresh token. Must not be null
.public RefreshToken getRefreshToken()
public Map<String,String> toParameters()
AuthorizationGrant
toParameters
in class AuthorizationGrant
public static RefreshTokenGrant parse(Map<String,String> params) throws ParseException
Example:
grant_type=refresh_token refresh_token=tGzv3JOkF0XG5Qx2TlKWIA
params
- The parameters.ParseException
- If parsing failed.Copyright © 2018 Connect2id Ltd.. All rights reserved.