Interface CsrfPreventionFilter.NonceCache<T>

  • Type Parameters:
    T - The type of nonce stored in the cache
    All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    CsrfPreventionFilter.LruCache
    Enclosing class:
    CsrfPreventionFilter

    protected static interface CsrfPreventionFilter.NonceCache<T>
    extends java.io.Serializable
    Interface for a cache of nonces used for CSRF protection.
    • Method Detail

      • add

        void add​(T nonce)
        Add a nonce to the cache.
        Parameters:
        nonce - The nonce to add
      • contains

        boolean contains​(T nonce)
        Check if the cache contains the given nonce.
        Parameters:
        nonce - The nonce to check
        Returns:
        true if the nonce is in the cache