Interface AccessTokenCache.Builder
-
- All Known Implementing Classes:
AccessTokenCache.Builder.Impl
- Enclosing interface:
- AccessTokenCache
public static interface AccessTokenCache.Builder
The builder interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AccessTokenCache.Builder.Impl
The builder implementation.
-
Method Summary
All Methods Instance Methods Abstract 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
AccessTokenCache.Builder withExternalCache(org.springframework.cache.Cache externalCache)
With external cache.- Parameters:
externalCache
- the external cache- Returns:
- the builder
-
withExpirationTimeThreshold
AccessTokenCache.Builder withExpirationTimeThreshold(Duration duration)
With expiration time threshold.- Parameters:
duration
- the duration- Returns:
- the builder
-
withKeyPrefix
AccessTokenCache.Builder withKeyPrefix(String keyPrefix)
With key prefix.- Parameters:
keyPrefix
- the key prefix- Returns:
- the builder
-
build
AccessTokenCache build()
Build access token cache.- Returns:
- the access token cache
-
-