|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplayCache
A cache to store (String) identifiers to avoid replay attacks. An example of such an identifier is a UsernameToken nonce.
Method Summary | |
---|---|
void |
add(String identifier)
Add the given identifier to the cache. |
void |
add(String identifier,
long timeToLive)
Add the given identifier to the cache to be cached for the given time |
boolean |
contains(String identifier)
Return true if the given identifier is contained in the cache |
Method Detail |
---|
void add(String identifier)
identifier
- The identifier to be addedvoid add(String identifier, long timeToLive)
identifier
- The identifier to be addedtimeToLive
- The length of time to cache the Identifier in secondsboolean contains(String identifier)
identifier
- The identifier to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |