Show / Hide Table of Contents

Class AuthnContextListItem

Represents an authn context list item.

Inheritance
System.Object
AuthnContextListItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.Protocols
Assembly: ComponentSpace.Saml2.dll
Syntax
public class AuthnContextListItem
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.

Declaration
public AuthnContextListItem()

AuthnContextListItem(AuthnContextClassRef)

Initializes a new instance of the AuthnContextListItem class.

Declaration
public AuthnContextListItem(AuthnContextClassRef authnContextClassRef)
Parameters
Type Name Description
AuthnContextClassRef authnContextClassRef

The authn context class reference.

AuthnContextListItem(AuthnContextDeclRef)

Initializes a new instance of the AuthnContextListItem class.

Declaration
public AuthnContextListItem(AuthnContextDeclRef authnContextDeclRef)
Parameters
Type Name Description
AuthnContextDeclRef authnContextDeclRef

The authn context declaration reference.

AuthnContextListItem(XmlElement)

Initializes a new instance of the AuthnContextListItem class from XML.

Declaration
public AuthnContextListItem(XmlElement xmlElement)
Parameters
Type Name Description
System.Xml.XmlElement xmlElement

The authn context list item XML.

Exceptions
Type Condition
SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AuthnContextClassRef

Gets or sets the authn context class reference.

Declaration
public AuthnContextClassRef AuthnContextClassRef { get; set; }
Property Value
Type Description
AuthnContextClassRef

The authn context class reference.

AuthnContextDeclRef

Gets or sets the authn context declaration reference.

Declaration
public AuthnContextDeclRef AuthnContextDeclRef { get; set; }
Property Value
Type Description
AuthnContextDeclRef

The authn context declaration reference.

Methods

IsValid(XmlElement)

Indicates whether the XML is an authn context list item.

Declaration
public static bool IsValid(XmlElement xmlElement)
Parameters
Type Name Description
System.Xml.XmlElement xmlElement

The XML to test.

Returns
Type Description
System.Boolean

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

ToXml(XmlDocument)

Serializes the authn context list item to XML.

Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
Type Name Description
System.Xml.XmlDocument xmlDocument

The owning XML document.

Returns
Type Description
System.Xml.XmlElement

The authn context list item as XML.

Exceptions
Type Condition
SamlSerializationException

Thrown when the XML serialization fails.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.