Interface AccessTokenCache.Builder
-
- All Known Implementing Classes:
AccessTokenCache.Builder.Impl
- Enclosing interface:
- AccessTokenCache
public static interface AccessTokenCache.BuilderThe builder interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAccessTokenCache.Builder.ImplThe builder implementation.
-
Method Summary
All Methods Instance Methods Abstract 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
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
-
-