org.opensaml.util.storage
Class ReplayCache.ReplayCacheEntry

java.lang.Object
  extended by org.opensaml.util.storage.ReplayCache.ReplayCacheEntry
All Implemented Interfaces:
java.io.Serializable, ExpiringObject
Enclosing class:
ReplayCache

public class ReplayCache.ReplayCacheEntry
extends java.lang.Object
implements ExpiringObject, java.io.Serializable

Replay cache storage service entry.

See Also:
Serialized Form

Constructor Summary
ReplayCache.ReplayCacheEntry(org.joda.time.DateTime expiration)
          Constructor.
 
Method Summary
 org.joda.time.DateTime getExpirationTime()
          Gets the time the object expires.
 boolean isExpired()
          Gets whether this object has expired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayCache.ReplayCacheEntry

public ReplayCache.ReplayCacheEntry(org.joda.time.DateTime expiration)
Constructor.

Parameters:
expiration - time when this entry expires
Method Detail

getExpirationTime

public org.joda.time.DateTime getExpirationTime()
Gets the time the object expires.

Specified by:
getExpirationTime in interface ExpiringObject
Returns:
time the object expires

isExpired

public boolean isExpired()
Gets whether this object has expired.

Specified by:
isExpired in interface ExpiringObject
Returns:
true if the expiration time has passed, false if not