Package org.apache.wss4j.common.cache
Interface ReplayCache
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
EHCacheReplayCache,MemoryReplayCache
A cache to store (String) identifiers to avoid replay attacks. An example of such an identifier
is a UsernameToken nonce.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the given identifier to the cache.voidAdd the given identifier to the cache to be cached for the given timebooleanReturn true if the given identifier is contained in the cache
-
Method Details
-
add
Add the given identifier to the cache. It will be cached for a default amount of time.- Parameters:
identifier- The identifier to be added
-
add
Add the given identifier to the cache to be cached for the given time- Parameters:
identifier- The identifier to be addedexpiry- A custom expiry time for the identifier
-
contains
Return true if the given identifier is contained in the cache- Parameters:
identifier- The identifier to check
-