public final class OAuth2RefreshTokenGenerator extends java.lang.Object implements OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2RefreshToken>
OAuth2TokenGenerator that generates an OAuth2RefreshToken.OAuth2TokenGenerator,
OAuth2RefreshToken| 构造器和说明 |
|---|
OAuth2RefreshTokenGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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