Class AuthnContext
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an authentication context.
public class AuthnContext
- Inheritance
-
AuthnContext
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AuthnContext()
Initializes a new instance of the AuthnContext class.
public AuthnContext()
AuthnContext(XmlElement)
Initializes a new instance of the AuthnContext class from XML.
public AuthnContext(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe authentication context XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
AuthenticatingAuthorities
Gets or sets the authenticating authorities.
public IList<AuthenticatingAuthority> AuthenticatingAuthorities { get; set; }
Property Value
- IList<AuthenticatingAuthority>
The authenticating authorities.
AuthnContextClassRef
Gets or sets the authentication context class reference.
public AuthnContextClassRef AuthnContextClassRef { get; set; }
Property Value
- AuthnContextClassRef
The authentication context class reference.
AuthnContextDecl
Gets or sets the authentication context declaration.
public AuthnContextDecl AuthnContextDecl { get; set; }
Property Value
- AuthnContextDecl
The authentication context class declaration.
AuthnContextDeclRef
Gets or sets the authentication context declaration reference.
public AuthnContextDeclRef AuthnContextDeclRef { get; set; }
Property Value
- AuthnContextDeclRef
The authentication context declaration reference.
Methods
IsValid(XmlElement)
Indicates whether the XML is an authentication context.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an authentication context; otherwisefalse.
ToXml(XmlDocument)
Serializes the authentication context to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The authentication context as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.