org.opensaml
Interface ReplayCache
- All Known Implementing Classes:
- MemoryReplayCacheProvider
- public interface ReplayCache
Interface to a potentially persistent replay cache for uniquely-keyed objects
- Author:
- Scott Cantor
Method Summary |
boolean |
check(String key,
Date expires)
Checks the replay cache for the existence of a key value and if not,
inserts the new key with the specified expiration time. |
check
public boolean check(String key,
Date expires)
throws SAMLException
- Checks the replay cache for the existence of a key value and if not,
inserts the new key with the specified expiration time.
- Parameters:
key
- The key value to search for and insertexpires
- A time at which this key can be forgotten
- Returns:
- true iff the key does not exist or has expired
- Throws:
SAMLException
- Raised if an error occurs while checking the cache
Copyright ? 2005 UCAID. All Rights Reserved.