Class HANonceManager

All Implemented Interfaces:
MOMRegistrationAware

public class HANonceManager extends NonceManager
Author:
suresh
  • Constructor Details

    • HANonceManager

      public HANonceManager(long maxNonceAge)
    • HANonceManager

      public HANonceManager(org.glassfish.ha.store.api.BackingStore<StickyKey,com.sun.xml.wss.impl.misc.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