Class AuthnContextDecl
Represents an authentication context declaration.
Inherited Members
Namespace: ComponentSpace.SAML2.Assertions
Assembly: ComponentSpace.Saml2.dll
Syntax
public class AuthnContextDecl
  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.
Declaration
public AuthnContextDecl()
  AuthnContextDecl(XmlElement)
Initializes a new instance of the AuthnContextDecl class from XML.
Declaration
public AuthnContextDecl(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The authentication context declaration XML.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLSerializationException | Thrown when the XML deserialization fails.  | 
      
AuthnContextDecl(XmlNodeList)
Initializes a new instance of the AuthnContextDecl class.
Declaration
public AuthnContextDecl(XmlNodeList declaration)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlNodeList | declaration | The authentication context declaration.  | 
      
Properties
Declaration
Gets or sets the declaration.
Declaration
public XmlNodeList Declaration { get; set; }
  Property Value
| Type | Description | 
|---|---|
| XmlNodeList | The declaration.  | 
      
Methods
IsValid(XmlElement)
Indicates whether the XML is an authentication context declaration.
Declaration
public static bool IsValid(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The XML to test.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
      
ToXml(XmlDocument)
Serializes the authentication context declaration to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlDocument | xmlDocument | The owning XML document.  | 
      
Returns
| Type | Description | 
|---|---|
| XmlElement | The authentication context declaration as XML.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLSerializationException | Thrown when the XML serialization fails.  |