org.opensaml.common.binding.artifact
public class BasicSAMLArtifactMapEntryFactory extends Object implements SAMLArtifactMap.SAMLArtifactMapEntryFactory
SAMLArtifactMap.SAMLArtifactMapEntryFactory
.
If this implementation, if the SAMLObject being stored does not have a parent, then it will be stored as-is. If it does have a parent, it will first be cloned, with its cloned and cached DOM rooted in a new Document.
If the serializeMessage
property is true, then the SAMLObject held by the
entry will be internally serialized within the entry before it is returned.
This option defaults to false.
Modifier and Type | Field and Description |
---|---|
private boolean |
serializeMessage
Flag determining whether the SAMLObject message should be explicitly serialized
on creation of the new artifact map entry.
|
Constructor and Description |
---|
BasicSAMLArtifactMapEntryFactory() |
Modifier and Type | Method and Description |
---|---|
private SAMLObject |
getStorableSAMLMessage(SAMLObject samlMessage)
Get the SAMLObject which will actually be stored in the produced SAMLArtifactMapEntry.
|
boolean |
isSerializeMessage()
Get the flag determining whether the SAMLObject message should be explicitly serialized
on creation of the new artifact map entry.
|
SAMLArtifactMap.SAMLArtifactMapEntry |
newEntry(String artifact,
String issuerId,
String relyingPartyId,
SAMLObject samlMessage,
long lifetime)
Factory method which produces a
SAMLArtifactMap.SAMLArtifactMapEntry . |
void |
setSerializeMessage(boolean newSerializeMessage)
Set the flag determining whether the SAMLObject message should be explicitly serialized
on creation of the new artifact map entry.
|
private boolean serializeMessage
public void setSerializeMessage(boolean newSerializeMessage)
newSerializeMessage
- the new flag valuepublic boolean isSerializeMessage()
public SAMLArtifactMap.SAMLArtifactMapEntry newEntry(String artifact, String issuerId, String relyingPartyId, SAMLObject samlMessage, long lifetime)
SAMLArtifactMap.SAMLArtifactMapEntry
.newEntry
in interface SAMLArtifactMap.SAMLArtifactMapEntryFactory
artifact
- the artifactissuerId
- ID of the issuer of the artifactrelyingPartyId
- ID of the party the artifact was sent tosamlMessage
- the SAML messagelifetime
- the lifetime of the artifact entry, in millisecondsprivate SAMLObject getStorableSAMLMessage(SAMLObject samlMessage)
This may or may not be the same SAMLObject that is passed in. If the SAMLObject does not have a parent, the same object will be returned. Otherwise, the object will be cloned and the cloned instance returned.
samlMessage
- the SAML message to processCopyright © 1999-2013 JBoss by Red Hat. All Rights Reserved.