|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SAMLArtifactMap
Maps an artifact to a SAML message and back again.
Artifacts must be thread safe.
An implementation of this interface MUST ensure that the persisted SAML message is no longer tied to any
parent XMLObject
that may have contained it. This ensures that it can be safely added
to another object once retrieved from the map. This might for example be achieved by:
1) cloning the SAMLObject prior to storage, or 2) by serializing it to a string and re-parsing
and unmarhsalling it once retrieved from the underlying data store.
This requirement may be handled by the SAMLArtifactMap directly, or by the use of of a specific
implementation of SAMLArtifactMap.SAMLArtifactMapEntryFactory
.
Nested Class Summary | |
---|---|
static interface |
SAMLArtifactMap.SAMLArtifactMapEntry
Represents a mapping between an artifact a SAML message with some associated metadata. |
static interface |
SAMLArtifactMap.SAMLArtifactMapEntryFactory
A factory for producing SAMLArtifactMapEntry instances based on standard inputs. |
Method Summary | |
---|---|
boolean |
contains(String artifact)
Checks if a given artifact has a map entry. |
SAMLArtifactMap.SAMLArtifactMapEntry |
get(String artifact)
Gets the artifact entry for the given artifact. |
void |
put(String artifact,
String relyingPartyId,
String issuerId,
SAMLObject samlMessage)
Creates a mapping between a given artifact and the SAML message to which it maps. |
void |
remove(String artifact)
Removes the artifact from this map. |
Method Detail |
---|
boolean contains(String artifact)
artifact
- the artifact to check
void put(String artifact, String relyingPartyId, String issuerId, SAMLObject samlMessage) throws MarshallingException
artifact
- the artifactrelyingPartyId
- ID of the party the artifact was sent toissuerId
- ID of the issuer of the artifactsamlMessage
- the SAML message
MarshallingException
- thrown if the given SAML message can not be marshalledSAMLArtifactMap.SAMLArtifactMapEntry get(String artifact)
artifact
- the artifact to retrieve the entry for
void remove(String artifact)
artifact
- artifact to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |