Table of Contents

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

artifactValue string

The artifact value.

Artifact(XmlElement)

Initializes a new instance of the Artifact class from XML.

public Artifact(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The 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

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an artifact; otherwise false.

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

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The artifact as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.