Package com.sun.web.security
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()longlongvoidprotected booleanremoveEldestEntry(Map.Entry<String, org.glassfish.security.common.NonceInfo> eldest) voidsetCnonceCacheSize(long cnonceCacheSize) voidsetNonceValidity(long nonceValidity) Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
CNonceCacheImpl
public CNonceCacheImpl()
-
-
Method Details
-
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<String, org.glassfish.security.common.NonceInfo> eldest) - Overrides:
removeEldestEntryin classLinkedHashMap<String,org.glassfish.security.common.NonceInfo>
-
getCnonceCacheSize
public long getCnonceCacheSize()- Specified by:
getCnonceCacheSizein interfaceorg.glassfish.security.common.CNonceCache- Returns:
- the cnonceCacheSize
-
getNonceValidity
public long getNonceValidity()- Specified by:
getNonceValidityin interfaceorg.glassfish.security.common.CNonceCache- Returns:
- the nonceValidity
-
getEldestCNonce
- Returns:
- the eldestCNonce
-
init
- Specified by:
initin interfaceorg.glassfish.security.common.CNonceCache
-
setCnonceCacheSize
public void setCnonceCacheSize(long cnonceCacheSize) - Specified by:
setCnonceCacheSizein interfaceorg.glassfish.security.common.CNonceCache
-
setNonceValidity
public void setNonceValidity(long nonceValidity) - Specified by:
setNonceValidityin interfaceorg.glassfish.security.common.CNonceCache
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.glassfish.security.common.CNonceCache
-