org.opensaml.util.storage
Interface ExpiringObject

All Known Subinterfaces:
SAMLArtifactMap.SAMLArtifactMapEntry
All Known Implementing Classes:
ReplayCache.ReplayCacheEntry

public interface ExpiringObject

A simple interface for objects that may expire at a given time.


Method Summary
 org.joda.time.DateTime getExpirationTime()
          Gets the time the object expires.
 boolean isExpired()
          Gets whether this object has expired.
 

Method Detail

getExpirationTime

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

Returns:
time the object expires

isExpired

boolean isExpired()
Gets whether this object has expired.

Returns:
true if the expiration time has passed, false if not