Interface Artifact


  • @SupportedAll
    public interface Artifact
    This class represents the Artifact element in SAMLv2 protocol schema.

     <element name="Artifact" type="{http://www.w3.org/2001/XMLSchema}string"/>
     
    • Method Detail

      • getArtifactValue

        String getArtifactValue()
        Returns the artifact.
        Returns:
        the value of the artifact. It's Base64 encoded.
      • getSourceID

        String getSourceID()
        Returns the SourceID of the artifact.
        Returns:
        The SourceID of the artifact.
      • getMessageHandle

        String getMessageHandle()
        Returns the MessageHandle of the artifact. The result will be decoded.
        Returns:
        The MessageHandle of the artifact.
      • getTypeCode

        byte[] getTypeCode()
        Returns the TypeCode of the artifact.
        Returns:
        The byte array of the TypeCode for the artifact.
      • getEndpointIndex

        int getEndpointIndex()
        Returns the EndpointIndex 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 converted
        declareNS - 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.