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