org.opensaml.provider
Class MemoryReplayCacheProvider

java.lang.Object
  extended byorg.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

Constructor Summary
MemoryReplayCacheProvider(Element e)
           
 
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
 

Constructor Detail

MemoryReplayCacheProvider

public MemoryReplayCacheProvider(Element e)
Method Detail

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 insert
expires - 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.