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
xmlElementXmlElementThe 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
nullif none.
Methods
IsValid(XmlElement)
Indicates whether the XML is an artifact response.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an artifact response; otherwisefalse.
ToXml(XmlDocument)
Serializes the artifact response to XML.
public override XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The artifact response as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.