public interface SAMLUsedAssertionCache
SAMLUsedAssertionCache
defines an interface for storing
and checking information about consumed SAML assertions so that a
one-use policy for assertions can be enforced.
Classes implementing this interface must have a public no-arg constructor and must be in the system classpath.
Modifier and Type | Method and Description |
---|---|
boolean |
cacheAssertion(String assertionId,
String issuer,
long expire)
Cache the Assertion ID and Issuer of a consumed assertion.
|
void |
flushCache()
Flush all cache entries.
|
boolean |
initCache(Properties props)
Initialize the cache.
|
void |
releaseCache()
Release the cache.
|
boolean initCache(Properties props)
props
- A Properties
object containing properties the cache
needs to initialize. Can be empty or null.void releaseCache()
void flushCache()
boolean cacheAssertion(String assertionId, String issuer, long expire)
assertionId
- The Assertion ID of the to-be-cached assertion.issuer
- The Issuer of the to-be-cached assertion.expire
- The NotOnOrAfter time of the to-be-cached assertion. After this
time, the cache entry may be discarded, as the assertion is no longer
valid and hence cannot be re-used.