Class AuthnContextListItem
Represents an authn context list item.
Inheritance
Inherited Members
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 |
|
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. |