Interface ReactiveAccessTokenCache
-
@Validated public interface ReactiveAccessTokenCache
The reactive access token cache interface.- Author:
- Christian Bremer
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_NAME
The constant CACHE_NAME.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>
findAccessToken(@NotNull String key)
Find not expired access token from cache.static ReactiveAccessTokenCache
from(@NotNull org.bremersee.security.authentication.AccessTokenCache accessTokenCache)
Creates a reactive cache from the given access token cache.reactor.core.publisher.Mono<String>
putAccessToken(@NotNull String key, @NotNull String accessToken)
Put new access token into the cache.
-
-
-
Field Detail
-
CACHE_NAME
static final String CACHE_NAME
The constant CACHE_NAME.- See Also:
- Constant Field Values
-
-
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 keyaccessToken
- 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
-
-