public class AssertionArtifact extends Object
AssertionArtifact
element in
SAML protocol schema. Current implementation supports TYPE 1 artifact only.
Other type of artifact can be supported by extending this class.Modifier | Constructor and Description |
---|---|
protected |
AssertionArtifact()
This is the default constructor of assertion artifact.
|
|
AssertionArtifact(String theArtifact)
This constructor is used to construct an assertion artifact.
|
|
AssertionArtifact(String id,
String handle)
This constructor will be used at the sender side to create a new
AssertionArtifact . |
Modifier and Type | Method and Description |
---|---|
String |
getAssertionArtifact()
Gets the artifact.
|
String |
getAssertionHandle()
Gets the
AssertionHandle of the artifact. |
String |
getSourceID()
Returns the
SourceID of the artifact. |
byte[] |
getTypeCode()
Gets the
typeCode of the artifact. |
String |
toString()
Translates the
AssertionArtifact to an XML document String
based on the SAML schema. |
String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of the
<samlp:AssertionArtifact> element. |
protected AssertionArtifact()
public AssertionArtifact(String theArtifact) throws SAMLException
theArtifact
- is the string that is generated by a provider.SAMLException
- if an error occurs.public AssertionArtifact(String id, String handle) throws SAMLException
AssertionArtifact
.id
- A string that represents the sourceID
.handle
- A string that represents the assertionHandle
.SAMLException
- if wrong input or could not encode the artifact.public String getAssertionArtifact()
public String getSourceID()
SourceID
of the artifact.SourceID
of the artifact.public String getAssertionHandle()
AssertionHandle
of the artifact. The result will be
decoded.AssertionHandle
of the artifact.public byte[] getTypeCode()
typeCode
of the artifact.TypeCode
for the artifact.public String toString()
AssertionArtifact
to an XML document String
based on the SAML schema.public String toString(boolean includeNS, boolean declareNS)
<samlp:AssertionArtifact>
element.includeNS
- Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.Copyright © 2010-2018, ForgeRock All Rights Reserved.