org.opensaml.provider
Class MemoryReplayCacheProvider
java.lang.Object
org.opensaml.provider.MemoryReplayCacheProvider
- All Implemented Interfaces:
- ReplayCache
- public class MemoryReplayCacheProvider
- extends Object
- implements 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryReplayCacheProvider
public MemoryReplayCacheProvider(Element e)
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.
- Specified by:
check
in interface ReplayCache
- 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.