Package org.apache.rampart
Class ServiceNonceCache
java.lang.Object
org.apache.rampart.ServiceNonceCache
This class holds nonce information per service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNonceForService
(String service, String userName, String nonceValue, int nonceLifeTime) This method will add a nonce value for a given service.boolean
isNonceRepeatingForService
(String service, String userName, String nonceValue) This method will check whether the nonce value is repeating for the given 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
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.
-