Class 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 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 properties
        connectionFactory - the connection factory
    • Method Detail

      • findAccessToken

        public Optional<String> findAccessToken​(String key)
        Specified by:
        findAccessToken in interface org.bremersee.security.authentication.AccessTokenCache
      • putAccessToken

        public void putAccessToken​(String key,
                                   String accessToken)
        Specified by:
        putAccessToken in interface org.bremersee.security.authentication.AccessTokenCache