Class RedisAccessTokenCache
- java.lang.Object
-
- org.bremersee.security.authentication.RedisAccessTokenCache
-
- All Implemented Interfaces:
org.bremersee.security.authentication.AccessTokenCache
public class RedisAccessTokenCache extends Object implements org.bremersee.security.authentication.AccessTokenCache
The redis access token cache.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description RedisAccessTokenCache(AuthProperties.JwtCache jwtCacheProperties, org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
Instantiates a new redis access token cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
findAccessToken(String key)
void
putAccessToken(String key, String accessToken)
-
-
-
Constructor Detail
-
RedisAccessTokenCache
public RedisAccessTokenCache(AuthProperties.JwtCache jwtCacheProperties, org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
Instantiates a new redis access token cache.- Parameters:
jwtCacheProperties
- the jwt cache propertiesconnectionFactory
- the connection factory
-
-