Package com.sun.xml.wss.impl.misc
Class DefaultNonceManager
- java.lang.Object
-
- com.sun.xml.ws.commons.AbstractMOMRegistrationAware
-
- com.sun.xml.wss.NonceManager
-
- com.sun.xml.wss.impl.misc.DefaultNonceManager
-
- All Implemented Interfaces:
MOMRegistrationAware
@ManagedObject @Description("per-endpoint NonceManager") @AMXMetadata(type="WSNonceManager") public class DefaultNonceManager extends NonceManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.xml.wss.NonceManager
NonceManager.NonceException
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
log
logger-
Fields inherited from class com.sun.xml.wss.NonceManager
LOGGER, nonceManager
-
-
Constructor Summary
Constructors Constructor Description DefaultNonceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
log
protected static final Logger log
logger
-
-
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
-
-