Package org.opensaml.storage
Interface ReplayCache
@ThreadSafe
public interface ReplayCache
Interface to a component that checks for replay of a value.
-
Method Summary
-
Method Details
-
check
boolean check(@Nonnull @NotEmpty String context, @Nonnull @NotEmpty String key, @Nonnull Instant expires) Returns true iff the check value is not found in the cache, and stores it.- Parameters:
context- a context label to subdivide the cachekey- key to checkexpires- time for disposal of value from cache- Returns:
- true iff the check value is not found in the cache
-