Class AuthnContextClassRef
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an authentication context class reference.
public class AuthnContextClassRef
- Inheritance
-
AuthnContextClassRef
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AuthnContextClassRef()
Initializes a new instance of the AuthnContextClassRef class.
public AuthnContextClassRef()
AuthnContextClassRef(XmlElement)
Initializes a new instance of the AuthnContextClassRef class from XML.
public AuthnContextClassRef(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe authentication context class 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.
- See Also
Methods
IsValid(XmlElement)
Indicates whether the XML is an authentication context class reference.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an AuthnContextClassRef; otherwisefalse.
ToXml(XmlDocument)
Serializes the authentication context class reference to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The authentication context class reference as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.