public class OAuth2RefreshToken extends AbstractOAuth2Token
AbstractOAuth2Token
representing an OAuth 2.0 Refresh
Token.
A refresh token is a credential that represents an authorization granted by the resource owner to the client. It is used by the client to obtain a new access token when the current access token becomes invalid or expires, or to obtain additional access tokens with identical or narrower scope.
OAuth2AccessToken
,
Section
1.5 Refresh Token,
Serialized FormConstructor and Description |
---|
OAuth2RefreshToken(java.lang.String tokenValue,
java.time.Instant issuedAt)
Constructs an
OAuth2RefreshToken using the provided parameters. |
OAuth2RefreshToken(java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt)
Constructs an
OAuth2RefreshToken using the provided parameters. |
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
public OAuth2RefreshToken(java.lang.String tokenValue, java.time.Instant issuedAt)
OAuth2RefreshToken
using the provided parameters.tokenValue
- the token valueissuedAt
- the time at which the token was issuedpublic OAuth2RefreshToken(java.lang.String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt)
OAuth2RefreshToken
using the provided parameters.tokenValue
- the token valueissuedAt
- the time at which the token was issuedexpiresAt
- the time at which the token expires