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:
com.sun.xml.ws.commons.MOMRegistrationAware

public class HANonceManager extends NonceManager
Author:
suresh
  • Constructor Details

    • HANonceManager

      public HANonceManager(long maxNonceAge)
    • HANonceManager

      public HANonceManager(org.glassfish.ha.store.api.BackingStore<com.sun.xml.ws.commons.ha.StickyKey,HANonceManager.HAPojo> backingStore, long maxNonceAge)
  • Method Details

    • 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
    • remove

      public void remove(String key) throws org.glassfish.ha.store.api.BackingStoreException
      Throws:
      org.glassfish.ha.store.api.BackingStoreException