Class AccessTokenCache.Builder.Impl
- java.lang.Object
-
- org.bremersee.security.authentication.AccessTokenCache.Builder.Impl
-
- All Implemented Interfaces:
AccessTokenCache.Builder
- Enclosing interface:
- AccessTokenCache.Builder
public static class AccessTokenCache.Builder.Impl extends Object implements AccessTokenCache.Builder
The builder implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bremersee.security.authentication.AccessTokenCache.Builder
AccessTokenCache.Builder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokenCache
build()
Build access token cache.AccessTokenCache.Builder
withExpirationTimeThreshold(Duration duration)
With expiration time threshold.AccessTokenCache.Builder
withExternalCache(org.springframework.cache.Cache externalCache)
With external cache.AccessTokenCache.Builder
withKeyPrefix(String keyPrefix)
With key prefix.
-
-
-
Method Detail
-
withExternalCache
public AccessTokenCache.Builder withExternalCache(org.springframework.cache.Cache externalCache)
Description copied from interface:AccessTokenCache.Builder
With external cache.- Specified by:
withExternalCache
in interfaceAccessTokenCache.Builder
- Parameters:
externalCache
- the external cache- Returns:
- the builder
-
withExpirationTimeThreshold
public AccessTokenCache.Builder withExpirationTimeThreshold(Duration duration)
Description copied from interface:AccessTokenCache.Builder
With expiration time threshold.- Specified by:
withExpirationTimeThreshold
in interfaceAccessTokenCache.Builder
- Parameters:
duration
- the duration- Returns:
- the builder
-
withKeyPrefix
public AccessTokenCache.Builder withKeyPrefix(String keyPrefix)
Description copied from interface:AccessTokenCache.Builder
With key prefix.- Specified by:
withKeyPrefix
in interfaceAccessTokenCache.Builder
- Parameters:
keyPrefix
- the key prefix- Returns:
- the builder
-
build
public AccessTokenCache build()
Description copied from interface:AccessTokenCache.Builder
Build access token cache.- Specified by:
build
in interfaceAccessTokenCache.Builder
- Returns:
- the access token cache
-
-