com.sun.xml.wss.impl.misc
Class DefaultNonceManager

java.lang.Object
  extended by com.sun.xml.ws.commons.AbstractMOMRegistrationAware
      extended by com.sun.xml.wss.NonceManager
          extended by com.sun.xml.wss.impl.misc.DefaultNonceManager
All Implemented Interfaces:
MOMRegistrationAware

@ManagedObject
@Description(value="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
protected static Logger log
          logger
 
Fields inherited from class com.sun.xml.wss.NonceManager
LOGGER, nonceManager
 
Constructor Summary
DefaultNonceManager()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
logger

Constructor Detail

DefaultNonceManager

public DefaultNonceManager()
Method Detail

validateNonce

public boolean validateNonce(String nonce,
                             String created)
                      throws NonceManager.NonceException
Specified by:
validateNonce in class NonceManager
Parameters:
nonce - the nonce to be validated
created - 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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.