Class CNonceCacheImpl

java.lang.Object
java.util.AbstractMap<String,org.glassfish.security.common.NonceInfo>
java.util.HashMap<String,org.glassfish.security.common.NonceInfo>
java.util.LinkedHashMap<String,org.glassfish.security.common.NonceInfo>
com.sun.web.security.CNonceCacheImpl
All Implemented Interfaces:
Serializable, Cloneable, Map<String,org.glassfish.security.common.NonceInfo>, SequencedMap<String,org.glassfish.security.common.NonceInfo>, org.glassfish.security.common.CNonceCache

@Service(name="CNonceCache") @PerLookup public final class CNonceCacheImpl extends LinkedHashMap<String,org.glassfish.security.common.NonceInfo> implements org.glassfish.security.common.CNonceCache
Author:
vbkumarjayanti
See Also:
  • Constructor Details

    • CNonceCacheImpl

      public CNonceCacheImpl()
  • Method Details

    • removeEldestEntry

      protected boolean removeEldestEntry(Map.Entry<String,org.glassfish.security.common.NonceInfo> eldest)
      Overrides:
      removeEldestEntry in class LinkedHashMap<String,org.glassfish.security.common.NonceInfo>
    • getCnonceCacheSize

      public long getCnonceCacheSize()
      Specified by:
      getCnonceCacheSize in interface org.glassfish.security.common.CNonceCache
      Returns:
      the cnonceCacheSize
    • getNonceValidity

      public long getNonceValidity()
      Specified by:
      getNonceValidity in interface org.glassfish.security.common.CNonceCache
      Returns:
      the nonceValidity
    • getEldestCNonce

      public String getEldestCNonce()
      Returns:
      the eldestCNonce
    • init

      public void init(long size, String name, long validity, Map<String,String> props)
      Specified by:
      init in interface org.glassfish.security.common.CNonceCache
    • setCnonceCacheSize

      public void setCnonceCacheSize(long cnonceCacheSize)
      Specified by:
      setCnonceCacheSize in interface org.glassfish.security.common.CNonceCache
    • setNonceValidity

      public void setNonceValidity(long nonceValidity)
      Specified by:
      setNonceValidity in interface org.glassfish.security.common.CNonceCache
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.glassfish.security.common.CNonceCache