Table of Contents

Class ArtifactResponse

Namespace
ComponentSpace.Saml2.Protocols
Assembly
ComponentSpace.Saml2.dll

Represents an artifact response.

public class ArtifactResponse : StatusResponseType
Inheritance
ArtifactResponse
Inherited Members

Remarks

Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

ArtifactResponse()

Initializes a new instance of the ArtifactResponse class.

public ArtifactResponse()

ArtifactResponse(XmlElement)

Initializes a new instance of the ArtifactResponse class from XML.

public ArtifactResponse(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The artifact response XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

SamlMessage

Gets or sets the SAML message.

public XmlElement SamlMessage { get; set; }

Property Value

XmlElement

The SAML message or null if none.

Methods

IsValid(XmlElement)

Indicates whether the XML is an artifact response.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an artifact response; otherwise false.

ToXml(XmlDocument)

Serializes the artifact response to XML.

public override XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The artifact response as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.