public class RedisTokenAuthenticationManager extends Object implements TokenAuthenticationManager
| Constructor and Description |
|---|
RedisTokenAuthenticationManager(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory) |
RedisTokenAuthenticationManager(org.springframework.data.redis.core.ReactiveRedisOperations<String,Authentication> operations) |
| 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
|
public RedisTokenAuthenticationManager(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory)
public RedisTokenAuthenticationManager(org.springframework.data.redis.core.ReactiveRedisOperations<String,Authentication> operations)
public reactor.core.publisher.Mono<Authentication> getByToken(String token)
TokenAuthenticationManagergetByToken in interface TokenAuthenticationManagertoken - tokenpublic reactor.core.publisher.Mono<Void> removeToken(String token)
TokenAuthenticationManagerremoveToken in interface TokenAuthenticationManagertoken - tokenpublic reactor.core.publisher.Mono<Void> putAuthentication(String token, Authentication auth, Duration ttl)
TokenAuthenticationManagerputAuthentication in interface TokenAuthenticationManagertoken - tokenauth - 认证信息ttl - 有效期Copyright © 2016–2021. All rights reserved.