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 AccessTokenCachebuild()Build access token cache.AccessTokenCache.BuilderwithExpirationTimeThreshold(Duration duration)With expiration time threshold.AccessTokenCache.BuilderwithExternalCache(org.springframework.cache.Cache externalCache)With external cache.AccessTokenCache.BuilderwithKeyPrefix(String keyPrefix)With key prefix.
-
-
-
Method Detail
-
withExternalCache
public AccessTokenCache.Builder withExternalCache(org.springframework.cache.Cache externalCache)
Description copied from interface:AccessTokenCache.BuilderWith external cache.- Specified by:
withExternalCachein interfaceAccessTokenCache.Builder- Parameters:
externalCache- the external cache- Returns:
- the builder
-
withExpirationTimeThreshold
public AccessTokenCache.Builder withExpirationTimeThreshold(Duration duration)
Description copied from interface:AccessTokenCache.BuilderWith expiration time threshold.- Specified by:
withExpirationTimeThresholdin interfaceAccessTokenCache.Builder- Parameters:
duration- the duration- Returns:
- the builder
-
withKeyPrefix
public AccessTokenCache.Builder withKeyPrefix(String keyPrefix)
Description copied from interface:AccessTokenCache.BuilderWith key prefix.- Specified by:
withKeyPrefixin interfaceAccessTokenCache.Builder- Parameters:
keyPrefix- the key prefix- Returns:
- the builder
-
build
public AccessTokenCache build()
Description copied from interface:AccessTokenCache.BuilderBuild access token cache.- Specified by:
buildin interfaceAccessTokenCache.Builder- Returns:
- the access token cache
-
-