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
ConstructorDescriptionOAuth2RefreshToken
(String tokenValue, Instant issuedAt) Constructs anOAuth2RefreshToken
using the provided parameters.OAuth2RefreshToken
(String tokenValue, Instant issuedAt, Instant expiresAt) Constructs anOAuth2RefreshToken
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.core.AbstractOAuth2Token
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
-
Constructor Details
-
OAuth2RefreshToken
Constructs anOAuth2RefreshToken
using the provided parameters.- Parameters:
tokenValue
- the token valueissuedAt
- the time at which the token was issued
-
OAuth2RefreshToken
Constructs anOAuth2RefreshToken
using the provided parameters.- Parameters:
tokenValue
- the token valueissuedAt
- the time at which the token was issuedexpiresAt
- the time at which the token expires- Since:
- 5.5
-