Class NameID
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents a name identifier.
public class NameID : NameIDType
- Inheritance
-
NameID
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
NameID()
Initializes a new instance of the NameID class.
public NameID()
NameID(XmlElement)
Initializes a new instance of the NameID class from XML.
public NameID(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe name identifier XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
IsValid(XmlElement)
Indicates whether the XML is a name identifier.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a name identifier; otherwisefalse.
ToXml()
Serializes the name identifier to XML.
public XmlElement ToXml()
Returns
- XmlElement
The name identifier as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.
ToXml(XmlDocument)
Serializes the name identifier to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The name identifier as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.