|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.protocol.AssertionArtifact
public class AssertionArtifact
This class represents the AssertionArtifact
element in
SAML protocol schema. Current implementation supports TYPE 1 artifact only.
Other type of artifact can be supported by extending this class.
Field Summary | |
---|---|
protected String |
artifact
This value specifies the assertion artifact as a string. |
protected String |
assertionHandle
|
protected String |
sourceID
|
protected byte[] |
typeCode
|
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Field Detail |
---|
protected String artifact
protected String assertionHandle
protected String sourceID
protected byte[] typeCode
Constructor Detail |
---|
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.Method Detail |
---|
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.
toString
in class Object
AssertionArtifact
.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |