Class Artifact
- Namespace
- ComponentSpace.Saml2.Protocols
- Assembly
- ComponentSpace.Saml2.dll
Represents an artifact.
public class Artifact
- Inheritance
-
Artifact
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Artifact()
Initializes a new instance of the Artifact class.
public Artifact()
Artifact(string)
Initializes a new instance of the Artifact class.
public Artifact(string artifactValue)
Parameters
artifactValuestringThe artifact value.
Artifact(XmlElement)
Initializes a new instance of the Artifact class from XML.
public Artifact(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe artifact XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
ArtifactValue
Gets or sets the artifact value.
public string ArtifactValue { get; set; }
Property Value
- string
The artifact value.
Methods
IsValid(XmlElement)
Indicates whether the XML is an artifact.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an artifact; otherwisefalse.
ToString()
Returns the artifact value.
public override string ToString()
Returns
- string
The artifact value
ToXml(XmlDocument)
Serializes the artifact to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The artifact as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.