public class OAuth2RefreshTokenAuthenticationToken extends OAuth2AuthorizationGrantAuthenticationToken
Authentication implementation used for the OAuth 2.0 Refresh Token Grant.OAuth2AuthorizationGrantAuthenticationToken,
OAuth2RefreshTokenAuthenticationProvider,
Serialized Form| Constructor and Description |
|---|
OAuth2RefreshTokenAuthenticationToken(java.lang.String refreshToken,
org.springframework.security.core.Authentication clientPrincipal,
java.util.Set<java.lang.String> scopes,
java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
Constructs an
OAuth2RefreshTokenAuthenticationToken using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRefreshToken()
Returns the refresh token.
|
java.util.Set<java.lang.String> |
getScopes()
Returns the requested scope(s).
|
getAdditionalParameters, getCredentials, getGrantType, getPrincipalequals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic OAuth2RefreshTokenAuthenticationToken(java.lang.String refreshToken,
org.springframework.security.core.Authentication clientPrincipal,
@Nullable
java.util.Set<java.lang.String> scopes,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
OAuth2RefreshTokenAuthenticationToken using the provided parameters.refreshToken - the refresh tokenclientPrincipal - the authenticated client principalscopes - the requested scope(s)additionalParameters - the additional parameters