クラス DPoPProofReplayValidator.InMemoryCache
java.lang.ObjectSE
org.springframework.security.oauth2.jwt.DPoPProofReplayValidator.InMemoryCache
- 実装済みのインターフェース一覧:
org.springframework.cache.Cache
- 含まれているクラス:
DPoPProofReplayValidator
public static final class DPoPProofReplayValidator.InMemoryCache
extends ObjectSE
implements org.springframework.cache.Cache
ConcurrentHashMapSE をバックエンドとするインメモリ Cache 実装。 注意 : この実装はシングルノード構成でのみ動作するため、制限があります。本番環境(およびクラスタ環境)では、分散型 Cache 実装(例: Redis、Hazelcast など)の使用をお勧めします。
This implementation can be fine-tuned based on the following configuration settings:
setMaxSize(int)- Sets the maximum number of entries the cache can hold. The default is 100,000.setMaxRequestsPerKey(int)- Sets the maximum number of requests allowed perJWK thumbprint. The default is 1000.
- 導入:
- 6.5.12
ネストされたクラスの概要
インターフェース org.springframework.cache.Cache から継承されたネストクラス / インターフェース
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapperコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidclear()void@Nullable org.springframework.cache.Cache.ValueWrapper<T> @Nullable T<T> @Nullable Tget(ObjectSE key, CallableSE<T> valueLoader) intReturns the maximum number of requests allowed perJWK thumbprint。intReturns the maximum number of entries the cache can hold.getName()void@Nullable org.springframework.cache.Cache.ValueWrapperputIfAbsent(ObjectSE key, @Nullable ObjectSE value) voidsetMaxRequestsPerKey(int maxRequestsPerKey) Sets the maximum number of requests allowed perJWK thumbprint。voidsetMaxSize(int maxSize) Sets the maximum number of entries the cache can hold.クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.cache.Cache から継承されたメソッド
evictIfPresent, invalidate, retrieve, retrieve
コンストラクターの詳細
InMemoryCache
public InMemoryCache()
方法の詳細
getMaxSize
public int getMaxSize()Returns the maximum number of entries the cache can hold.- 戻り値:
- the maximum number of entries the cache can hold
setMaxSize
public void setMaxSize(int maxSize) Sets the maximum number of entries the cache can hold. The default is 100,000.- パラメーター:
maxSize- the maximum number of entries the cache can hold
getMaxRequestsPerKey
public int getMaxRequestsPerKey()Returns the maximum number of requests allowed perJWK thumbprint。- 戻り値:
- the maximum number of requests allowed per
JWK thumbprint
setMaxRequestsPerKey
public void setMaxRequestsPerKey(int maxRequestsPerKey) Sets the maximum number of requests allowed perJWK thumbprint. The default is 1000.- パラメーター:
maxRequestsPerKey- the maximum number of requests allowed perJWK thumbprint
getName
- 次で指定:
- インターフェース
org.springframework.cache.Cache内のgetName
getNativeCache
- 次で指定:
- インターフェース
org.springframework.cache.Cache内のgetNativeCache
get
- 次で指定:
- インターフェース
org.springframework.cache.Cache内のget
get
get
- 次で指定:
- インターフェース
org.springframework.cache.Cache内のget
put
putIfAbsent
evict
- 次で指定:
- インターフェース
org.springframework.cache.Cache内のevict
clear
public void clear()- 次で指定:
- インターフェース
org.springframework.cache.Cache内のclear