Class ServiceNonceCache

java.lang.Object
org.apache.rampart.ServiceNonceCache

public class ServiceNonceCache extends Object
This class holds nonce information per service.
  • Constructor Details

    • ServiceNonceCache

      public ServiceNonceCache()
  • Method Details

    • addNonceForService

      public void addNonceForService(String service, String userName, String nonceValue, int nonceLifeTime)
      This method will add a nonce value for a given service.
      Parameters:
      service - The service url.
      userName - Given user name.
      nonceValue - Passed nonce value.
      nonceLifeTime - Maximum life span of a nonce value.
    • isNonceRepeatingForService

      public boolean isNonceRepeatingForService(String service, String userName, String nonceValue)
      This method will check whether the nonce value is repeating for the given service.
      Parameters:
      service - The service url.
      userName - User name.
      nonceValue - Nonce value.
      Returns:
      true if nonce value is repeating else false.