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