public class TokenCacheConfiguration extends Object implements CacheConfiguration
| Modifier and Type | Method and Description |
|---|---|
static TokenCacheConfiguration |
cacheDisabled()
The default cache configuration.
|
static TokenCacheConfiguration |
defaultConfiguration()
A special cache configuration used to disable caching.
|
boolean |
equals(Object o) |
java.time.Duration |
getCacheDuration() |
int |
getCacheSize() |
static TokenCacheConfiguration |
getInstance(java.time.Duration cacheDuration,
int cacheSize,
java.time.Duration tokenExpirationDelta)
Creates a new
TokenCacheConfiguration instance with the given
properties. |
java.time.Duration |
getTokenExpirationDelta()
If a cached token expires because its expiration time (exp) has been reached,
it should not be retrieved from the cache.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisCacheDisabledpublic static TokenCacheConfiguration getInstance(@Nonnull java.time.Duration cacheDuration, int cacheSize, @Nonnull java.time.Duration tokenExpirationDelta)
TokenCacheConfiguration instance with the given
properties. See CacheConfiguration.getCacheDuration(),
CacheConfiguration.getCacheSize() and
getTokenExpirationDelta() for an explanation
of the respective properties.cacheDuration - the cache duration property.cacheSize - the cache size property.tokenExpirationDelta - the token expiration delta.TokenCacheConfiguration instance.public static TokenCacheConfiguration cacheDisabled()
public static TokenCacheConfiguration defaultConfiguration()
@Nonnull public java.time.Duration getCacheDuration()
getCacheDuration in interface CacheConfigurationpublic int getCacheSize()
getCacheSize in interface CacheConfigurationpublic java.time.Duration getTokenExpirationDelta()
Copyright © 2020. All rights reserved.