public interface SAMLAssertionStore
SAMLAssertionStore
defines an interface for storing
and retrieving SAML assertions for use with the Artifact profile.
Classes implementing this interface must have a public no-arg constructor and must be in the system classpath.
Modifier and Type | Method and Description |
---|---|
void |
flushStore()
Flush all assertions.
|
boolean |
initStore(Properties props)
Initialize the store.
|
void |
releaseStore()
Release the store.
|
Element |
retrieveAssertion(String artifact)
Retrieve an assertion given an artifact.
|
boolean |
storeAssertion(String artifact,
long expire,
Element assertion)
Stores the given assertion for later retrieval using the specified artifact
as a key.
|
boolean initStore(Properties props)
props
- A Properties
object containing properties the store
needs to initialize. Can be empty or null.void releaseStore()
void flushStore()
boolean storeAssertion(String artifact, long expire, Element assertion)
artifact
- The SAML artifact to use as a key when
storing/retrieving the assertion.expire
- The NotOnOrAfter time of the assertion. The assertion may be discarded
if not retrieved prior to this time.assertion
- The assertion to store, as a DOM Element
.Element retrieveAssertion(String artifact)
artifact
- The SAML artifact corresponding to the desired assertion.Element
.