Table of Contents

Class AuthnContextDecl

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents an authentication context declaration.

public class AuthnContextDecl
Inheritance
AuthnContextDecl
Inherited Members

Remarks

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

Constructors

AuthnContextDecl()

Initializes a new instance of the AuthnContextDecl class.

public AuthnContextDecl()

AuthnContextDecl(XmlElement)

Initializes a new instance of the AuthnContextDecl class from XML.

public AuthnContextDecl(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The authentication context declaration XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Declaration

Gets or sets the declaration.

public IEnumerable<XmlNode> Declaration { get; set; }

Property Value

IEnumerable<XmlNode>

The declaration.

Methods

IsValid(XmlElement)

Indicates whether the XML is an authentication context declaration.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an authentication context declaration; otherwise false.

ToXml(XmlDocument)

Serializes the authentication context declaration to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The authentication context declaration as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.