|
||||||||||
| 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(java.lang.String identifier)
Add the given identifier to the cache. |
void |
add(java.lang.String identifier,
long timeToLive)
Add the given identifier to the cache to be cached for the given time |
boolean |
contains(java.lang.String identifier)
Return true if the given identifier is contained in the cache |
| Method Detail |
|---|
void add(java.lang.String identifier)
identifier - The identifier to be added
void add(java.lang.String identifier,
long timeToLive)
identifier - The identifier to be addedtimeToLive - The length of time to cache the Identifier in secondsboolean contains(java.lang.String identifier)
identifier - The identifier to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||