public interface TokenAuthenticationManager
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Authentication> |
getByToken(String token)
根据token获取认证信息
|
reactor.core.publisher.Mono<Void> |
putAuthentication(String token,
Authentication auth,
Duration ttl)
设置token认证信息
|
reactor.core.publisher.Mono<Void> |
removeToken(String token)
删除token
|
reactor.core.publisher.Mono<Authentication> getByToken(String token)
token - tokenreactor.core.publisher.Mono<Void> putAuthentication(String token, Authentication auth, Duration ttl)
token - tokenauth - 认证信息ttl - 有效期Copyright © 2016–2021. All rights reserved.