Class DBNonceCache

java.lang.Object
overit.geocall.cxf.DBNonceCache
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.wss4j.common.cache.ReplayCache

public class DBNonceCache extends Object implements org.apache.wss4j.common.cache.ReplayCache
  • Field Details

    • DEFAULT_TTL

      protected static final long DEFAULT_TTL
      See Also:
    • MAX_TTL

      protected static final long MAX_TTL
      See Also:
    • daoSNonce

      protected overit.geocall.basic.cxf.DAOSNonce daoSNonce
  • Constructor Details

    • DBNonceCache

      public DBNonceCache()
  • Method Details

    • add

      public void add(String nonce)
      Specified by:
      add in interface org.apache.wss4j.common.cache.ReplayCache
    • add

      public void add(String nonce, Instant expiry)
      Specified by:
      add in interface org.apache.wss4j.common.cache.ReplayCache
    • contains

      public boolean contains(String nonce)
      Specified by:
      contains in interface org.apache.wss4j.common.cache.ReplayCache
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException