org.apache.ws.security.cache
Interface ReplayCache

All Known Implementing Classes:
MemoryReplayCache

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

add

void add(String identifier)
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

void add(String identifier,
         long timeToLive)
Add the given identifier to the cache to be cached for the given time

Parameters:
identifier - The identifier to be added
timeToLive - The length of time to cache the Identifier in seconds

contains

boolean contains(String identifier)
Return true if the given identifier is contained in the cache

Parameters:
identifier - The identifier to check


Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.