org.apache.rampart
Class ServiceNonceCache
java.lang.Object
org.apache.rampart.ServiceNonceCache
public class ServiceNonceCache
- extends java.lang.Object
This class holds nonce information per service.
Method Summary |
void |
addNonceForService(java.lang.String service,
java.lang.String userName,
java.lang.String nonceValue,
int nonceLifeTime)
This method will add a nonce value for a given service. |
boolean |
isNonceRepeatingForService(java.lang.String service,
java.lang.String userName,
java.lang.String nonceValue)
This method will check whether the nonce value is repeating for the given service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceNonceCache
public ServiceNonceCache()
addNonceForService
public void addNonceForService(java.lang.String service,
java.lang.String userName,
java.lang.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(java.lang.String service,
java.lang.String userName,
java.lang.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.