Class NameIDMappingRequest
Represents a name ID mapping request.
Inherited Members
Namespace: ComponentSpace.Saml2.Protocols
Assembly: ComponentSpace.Saml2.dll
Syntax
public class NameIDMappingRequest : RequestAbstractType
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
NameIDMappingRequest()
Initializes a new instance of the NameIDMappingRequest
class.
Declaration
public NameIDMappingRequest()
NameIDMappingRequest(XmlElement)
Initializes a new instance of the NameIDMappingRequest
class from XML.
Declaration
public NameIDMappingRequest(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The name ID mapping request XML. |
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML deserialization fails. |
Properties
BaseID
Gets or sets the base ID.
Declaration
public BaseID BaseID { get; set; }
Property Value
Type | Description |
---|---|
BaseID | The base ID. |
EncryptedID
Gets or sets the encrypted ID.
Declaration
public EncryptedID EncryptedID { get; set; }
Property Value
Type | Description |
---|---|
EncryptedID | The encrypted ID. |
NameID
Gets or sets the name ID.
Declaration
public NameID NameID { get; set; }
Property Value
Type | Description |
---|---|
NameID | The name ID. |
NameIDPolicy
Gets or sets the name ID policy.
Declaration
public NameIDPolicy NameIDPolicy { get; set; }
Property Value
Type | Description |
---|---|
NameIDPolicy | The name ID policy. |
Methods
IsValid(XmlElement)
Indicates whether the XML is an artifact resolve request.
Declaration
public static bool IsValid(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The XML to test. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToXml(XmlDocument)
Serializes the name ID mapping request to XML.
Declaration
public override XmlElement ToXml(XmlDocument xmlDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmlDocument | The owning XML document. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The name ID mapping request as XML. |
Overrides
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML serialization fails. |