public class NonceCache extends AbstractUniqueMessageAttributeCache
Constructor and Description |
---|
NonceCache() |
NonceCache(int maxLifeTime) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(String id,
String userName)
Add value to a cache.
|
void |
clearCache()
Clears all recorded nonce values/sequence numbers.
|
boolean |
valueExistsInCache(String id,
String userName)
Checks whether value already exists in the cache for a given user name.
|
getMaximumLifeTimeOfAnAttribute, setMaximumLifeTimeOfAnAttribute
public void addToCache(String id, String userName)
UniqueMessageAttributeCache
id
- - Nonce value or sequence number.userName
- - User name parameter value of the UserNameToken.public boolean valueExistsInCache(String id, String userName)
UniqueMessageAttributeCache
id
- - Nonce or sequence id value of the newly received message.userName
- - User name parameter value of the UserName token.public void clearCache()
UniqueMessageAttributeCache
Copyright © Apache Software Foundation. All Rights Reserved.