Package org.apache.catalina.filters
Class CsrfPreventionFilter.LruCache<T>
- java.lang.Object
- 
- org.apache.catalina.filters.CsrfPreventionFilter.LruCache<T>
 
- 
- Type Parameters:
- T- The type held by this cache.
 - All Implemented Interfaces:
- java.io.Serializable,- CsrfPreventionFilter.NonceCache<T>
 - Enclosing class:
- CsrfPreventionFilter
 
 protected static class CsrfPreventionFilter.LruCache<T> extends java.lang.Object implements CsrfPreventionFilter.NonceCache<T> Despite its name, this is a FIFO cache not an LRU cache. Using an older nonce should not delay its removal from the cache in favour of more recent values.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description LruCache(int cacheSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T key)booleancontains(T key)
 
- 
- 
- 
Method Detail- 
addpublic void add(T key) - Specified by:
- addin interface- CsrfPreventionFilter.NonceCache<T>
 
 - 
containspublic boolean contains(T key) - Specified by:
- containsin interface- CsrfPreventionFilter.NonceCache<T>
 
 
- 
 
-