Package com.sun.xml.wss.impl.misc
Class HANonceManager
- java.lang.Object
-
- com.sun.xml.ws.commons.AbstractMOMRegistrationAware
-
- com.sun.xml.wss.NonceManager
-
- com.sun.xml.wss.impl.misc.HANonceManager
-
- All Implemented Interfaces:
MOMRegistrationAware
public class HANonceManager extends NonceManager
- Author:
- suresh
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HANonceManager.HAPojo
class
HANonceManager.nonceCleanupTask
-
Nested classes/interfaces inherited from class com.sun.xml.wss.NonceManager
NonceManager.NonceException
-
-
Field Summary
-
Fields inherited from class com.sun.xml.wss.NonceManager
LOGGER, nonceManager
-
-
Constructor Summary
Constructors Constructor Description HANonceManager(long maxNonceAge)
HANonceManager(org.glassfish.ha.store.api.BackingStore<StickyKey,HANonceManager.HAPojo> backingStore, long maxNonceAge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
remove(String key)
boolean
validateNonce(String nonce, String created)
-
Methods inherited from class com.sun.xml.wss.NonceManager
deleteInstance, getInstance, getMaxNonceAge, setMaxNonceAge
-
Methods inherited from class com.sun.xml.ws.commons.AbstractMOMRegistrationAware
isRegisteredAtMOM, setRegisteredAtMOM
-
-
-
-
Constructor Detail
-
HANonceManager
public HANonceManager(long maxNonceAge)
-
HANonceManager
public HANonceManager(org.glassfish.ha.store.api.BackingStore<StickyKey,HANonceManager.HAPojo> backingStore, long maxNonceAge)
-
-
Method Detail
-
validateNonce
public boolean validateNonce(String nonce, String created) throws NonceManager.NonceException
- Specified by:
validateNonce
in classNonceManager
- Parameters:
nonce
- the nonce to be validatedcreated
- the creation time of the nonce as indicated in the UsernameToken- Returns:
- true if the nonce is not a replay
- Throws:
NonceManager.NonceException
- if a replay is detected
-
remove
public void remove(String key) throws org.glassfish.ha.store.api.BackingStoreException
- Throws:
org.glassfish.ha.store.api.BackingStoreException
-
-