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