Class ReactiveRedisAccessTokenCache

  • All Implemented Interfaces:
    org.bremersee.security.authentication.ReactiveAccessTokenCache

    public class ReactiveRedisAccessTokenCache
    extends Object
    implements org.bremersee.security.authentication.ReactiveAccessTokenCache
    The reactive redis access token cache.
    Author:
    Christian Bremer
    • Constructor Detail

      • ReactiveRedisAccessTokenCache

        public ReactiveRedisAccessTokenCache​(AuthProperties.JwtCache jwtCacheProperties,
                                             org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory)
        Instantiates a new reactive redis access token cache.
        Parameters:
        jwtCacheProperties - the jwt cache properties
        connectionFactory - the connection factory
    • Method Detail

      • findAccessToken

        public reactor.core.publisher.Mono<String> findAccessToken​(String key)
        Specified by:
        findAccessToken in interface org.bremersee.security.authentication.ReactiveAccessTokenCache
      • putAccessToken

        public reactor.core.publisher.Mono<String> putAccessToken​(String key,
                                                                  String accessToken)
        Specified by:
        putAccessToken in interface org.bremersee.security.authentication.ReactiveAccessTokenCache