public final class OAuth2RefreshTokenGenerator extends java.lang.Object implements OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2RefreshToken>
OAuth2TokenGenerator that generates an OAuth2RefreshToken.OAuth2TokenGenerator,
OAuth2RefreshToken| Constructor and Description |
|---|
OAuth2RefreshTokenGenerator() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.core.OAuth2RefreshToken |
generate(OAuth2TokenContext context)
Generate an OAuth 2.0 Token using the attributes contained in the
OAuth2TokenContext,
or return null if the OAuth2TokenContext.getTokenType() is not supported. |
@Nullable public org.springframework.security.oauth2.core.OAuth2RefreshToken generate(OAuth2TokenContext context)
OAuth2TokenGeneratorOAuth2TokenContext,
or return null if the OAuth2TokenContext.getTokenType() is not supported.
If the returned OAuth2Token has a set of claims, it should implement ClaimAccessor
in order for it to be stored with the OAuth2Authorization.
generate in interface OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2RefreshToken>context - the context containing the OAuth 2.0 Token attributesOAuth2Token or null if the OAuth2TokenContext.getTokenType() is not supported