Interface ReactiveAccessTokenCache


  • @Validated
    public interface ReactiveAccessTokenCache
    The reactive access token cache interface.
    Author:
    Christian Bremer
    • Method Detail

      • findAccessToken

        reactor.core.publisher.Mono<String> findAccessToken​(@NotNull
                                                            @NotNull String key)
        Find not expired access token from cache.
        Parameters:
        key - the key
        Returns:
        the access token
      • putAccessToken

        reactor.core.publisher.Mono<String> putAccessToken​(@NotNull
                                                           @NotNull String key,
                                                           @NotNull
                                                           @NotNull String accessToken)
        Put new access token into the cache.
        Parameters:
        key - the key
        accessToken - the access token
        Returns:
        the access token
      • from

        static ReactiveAccessTokenCache from​(@NotNull
                                             @NotNull org.bremersee.security.authentication.AccessTokenCache accessTokenCache)
        Creates a reactive cache from the given access token cache.
        Parameters:
        accessTokenCache - the access token cache
        Returns:
        the reactive access token cache