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,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class OAuth2RefreshTokenAuthenticationToken
extends OAuth2AuthorizationGrantAuthenticationToken
An
Authentication implementation used for the OAuth 2.0 Refresh Token Grant.- Since:
- 0.0.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the refresh token.Returns the requested scope(s).Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
getAdditionalParameters, getCredentials, getGrantType, getPrincipalMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
OAuth2RefreshTokenAuthenticationToken
public OAuth2RefreshTokenAuthenticationToken(String refreshToken, org.springframework.security.core.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
Returns the refresh token.- Returns:
- the refresh token
-
getScopes
Returns the requested scope(s).- Returns:
- the requested scope(s), or an empty
Setif not available
-