Table of Contents

Class AuthnContextListItem

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

Represents an authn context list item.

public class AuthnContextListItem
Inheritance
AuthnContextListItem
Inherited Members

Remarks

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

Constructors

AuthnContextListItem()

Initializes a new instance of the AuthnContextListItem class.

public AuthnContextListItem()

AuthnContextListItem(AuthnContextClassRef)

Initializes a new instance of the AuthnContextListItem class.

public AuthnContextListItem(AuthnContextClassRef authnContextClassRef)

Parameters

authnContextClassRef AuthnContextClassRef

The authn context class reference.

AuthnContextListItem(AuthnContextDeclRef)

Initializes a new instance of the AuthnContextListItem class.

public AuthnContextListItem(AuthnContextDeclRef authnContextDeclRef)

Parameters

authnContextDeclRef AuthnContextDeclRef

The authn context declaration reference.

AuthnContextListItem(XmlElement)

Initializes a new instance of the AuthnContextListItem class from XML.

public AuthnContextListItem(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The authn context list item XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AuthnContextClassRef

Gets or sets the authn context class reference.

public AuthnContextClassRef AuthnContextClassRef { get; set; }

Property Value

AuthnContextClassRef

The authn context class reference.

AuthnContextDeclRef

Gets or sets the authn context declaration reference.

public AuthnContextDeclRef AuthnContextDeclRef { get; set; }

Property Value

AuthnContextDeclRef

The authn context declaration reference.

Methods

IsValid(XmlElement)

Indicates whether the XML is an authn context list item.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an authn context list item; otherwise false.

ToXml(XmlDocument)

Serializes the authn context list item to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The authn context list item as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.