Class OAuth2RefreshToken
java.lang.Object
org.springframework.security.oauth2.core.AbstractOAuth2Token
org.springframework.security.oauth2.core.OAuth2RefreshToken
- All Implemented Interfaces:
Serializable, OAuth2Token
An implementation of an
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.
- Since:
- 5.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2RefreshToken(String tokenValue, @Nullable Instant issuedAt) Constructs anOAuth2RefreshTokenusing the provided parameters.OAuth2RefreshToken(String tokenValue, @Nullable Instant issuedAt, @Nullable Instant expiresAt) Constructs anOAuth2RefreshTokenusing the provided parameters. -
Method Summary
Methods inherited from class AbstractOAuth2Token
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
-
Constructor Details
-
OAuth2RefreshToken
-
OAuth2RefreshToken
public OAuth2RefreshToken(String tokenValue, @Nullable Instant issuedAt, @Nullable Instant expiresAt) Constructs anOAuth2RefreshTokenusing the provided parameters.- Parameters:
tokenValue- the token valueissuedAt- the time at which the token was issued, may benullexpiresAt- the time at which the token expires, may benull- Since:
- 5.5
-