public interface AccessTokenManager
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<AccessToken> |
createAccessToken(String clientId,
Authentication authentication,
boolean singleton)
根据ClientId以及权限信息创建token
|
reactor.core.publisher.Mono<Authentication> |
getAuthenticationByToken(String accessToken)
根据token获取权限信息
|
reactor.core.publisher.Mono<AccessToken> |
refreshAccessToken(String clientId,
String refreshToken)
刷新token
|
reactor.core.publisher.Mono<Authentication> getAuthenticationByToken(String accessToken)
accessToken - accessTokenreactor.core.publisher.Mono<AccessToken> createAccessToken(String clientId, Authentication authentication, boolean singleton)
clientId - clientId OAuth2Client#getClientId()authentication - 权限信息singleton - 是否单例,如果为true,重复创建token将返回首次创建的tokenreactor.core.publisher.Mono<AccessToken> refreshAccessToken(String clientId, String refreshToken)
clientId - clientId OAuth2Client#getClientId()refreshToken - refreshTokenCopyright © 2016–2021. All rights reserved.