クラス 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:

導入:
6.5.12
  • コンストラクターの詳細

    • 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 per JWK thumbprint
      戻り値:
      the maximum number of requests allowed per JWK thumbprint
    • setMaxRequestsPerKey

      public void setMaxRequestsPerKey(int maxRequestsPerKey)
      Sets the maximum number of requests allowed per JWK thumbprint . The default is 1000.
      パラメーター:
      maxRequestsPerKey - the maximum number of requests allowed per JWK thumbprint
    • getName

      public StringSE getName()
      次で指定:
      インターフェース org.springframework.cache.Cache 内の getName 
    • getNativeCache

      public ObjectSE getNativeCache()
      次で指定:
      インターフェース org.springframework.cache.Cache 内の getNativeCache 
    • get

      public @Nullable org.springframework.cache.Cache.ValueWrapper get(ObjectSE key)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の get 
    • get

      public <T> @Nullable T get(ObjectSE key, @Nullable ClassSE<T> type)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の get 
    • get

      public <T> @Nullable T get(ObjectSE key, CallableSE<T> valueLoader)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の get 
    • put

      public void put(ObjectSE key, @Nullable ObjectSE value)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の put 
    • putIfAbsent

      public @Nullable org.springframework.cache.Cache.ValueWrapper putIfAbsent(ObjectSE key, @Nullable ObjectSE value)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の putIfAbsent 
    • evict

      public void evict(ObjectSE key)
      次で指定:
      インターフェース org.springframework.cache.Cache 内の evict 
    • clear

      public void clear()
      次で指定:
      インターフェース org.springframework.cache.Cache 内の clear