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