Class OAuth2RefreshTokenAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2RefreshTokenAuthenticationToken
- All Implemented Interfaces:
Serializable, Principal, Authentication, CredentialsContainer
public class OAuth2RefreshTokenAuthenticationToken
extends OAuth2AuthorizationGrantAuthenticationToken
An
Authentication implementation used for the OAuth 2.0 Refresh Token Grant.- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAuthenticationToken
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>Nested classes/interfaces inherited from interface Authentication
Authentication.Builder<B> -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2RefreshTokenAuthenticationToken(String refreshToken, Authentication clientPrincipal, @Nullable Set<String> scopes, @Nullable Map<String, Object> additionalParameters) Constructs anOAuth2RefreshTokenAuthenticationTokenusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the refresh token.Returns the requested scope(s).Methods inherited from class OAuth2AuthorizationGrantAuthenticationToken
getAdditionalParameters, getCredentials, getGrantType, getPrincipalMethods inherited from class AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from interface Authentication
toBuilder
-
Constructor Details
-
OAuth2RefreshTokenAuthenticationToken
public OAuth2RefreshTokenAuthenticationToken(String refreshToken, Authentication clientPrincipal, @Nullable Set<String> scopes, @Nullable Map<String, Object> additionalParameters) Constructs anOAuth2RefreshTokenAuthenticationTokenusing the provided parameters.- Parameters:
refreshToken- the refresh tokenclientPrincipal- the authenticated client principalscopes- the requested scope(s)additionalParameters- the additional parameters
-
-
Method Details
-
getRefreshToken
-
getScopes
-