Package com.sun.identity.saml2.protocol
Interface Artifact
-
@SupportedAll public interface Artifact
This class represents theArtifact
element in SAMLv2 protocol schema.<element name="Artifact" type="{http://www.w3.org/2001/XMLSchema}string"/>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getArtifactValue()
Returns the artifact.int
getEndpointIndex()
Returns theEndpointIndex
of the artifact.String
getMessageHandle()
Returns theMessageHandle
of the artifact.String
getSourceID()
Returns theSourceID
of the artifact.byte[]
getTypeCode()
Returns theTypeCode
of the artifact.String
toXMLString()
Returns a String representation of the element.String
toXMLString(boolean includeNS, boolean declareNS)
Returns a String representation of the element.
-
-
-
Method Detail
-
getArtifactValue
String getArtifactValue()
Returns the artifact.- Returns:
- the value of the artifact. It's
Base64
encoded.
-
getSourceID
String getSourceID()
Returns theSourceID
of the artifact.- Returns:
- The
SourceID
of the artifact.
-
getMessageHandle
String getMessageHandle()
Returns theMessageHandle
of the artifact. The result will be decoded.- Returns:
- The
MessageHandle
of the artifact.
-
getTypeCode
byte[] getTypeCode()
Returns theTypeCode
of the artifact.- Returns:
- The byte array of the
TypeCode
for the artifact.
-
getEndpointIndex
int getEndpointIndex()
Returns theEndpointIndex
of the artifact.- Returns:
- value of the
EndpointIndex
for the artifact.
-
toXMLString
String toXMLString() throws SAML2Exception
Returns a String representation of the element.- Returns:
- A string containing the valid XML for this element. By default name space name is prepended to the element name.
- Throws:
SAML2Exception
- if the object does not conform to the schema.
-
toXMLString
String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
Returns a String representation of the element.- Parameters:
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.- Returns:
- A string containing the valid XML for this element
- Throws:
SAML2Exception
- if the object does not conform to the schema.
-
-