Class NameIDType
Represents the name identifier type.
Inherited Members
Namespace: ComponentSpace.SAML2.Assertions
Assembly: ComponentSpace.Saml2.dll
Syntax
public class NameIDType
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
NameIDType()
Initializes a new instance of the NameIDType
class.
Declaration
public NameIDType()
NameIDType(String)
Initializes a new instance of the NameIDType
class.
Declaration
public NameIDType(string nameID)
Parameters
Type | Name | Description |
---|---|---|
System. |
nameID | The name ID. |
NameIDType(String, String, String, String, String)
Initializes a new instance of the NameIDType
class.
Declaration
public NameIDType(string nameID, string nameQualifier, string spNameQualifier, string format, string spProvidedID)
Parameters
Type | Name | Description |
---|---|---|
System. |
nameID | The name ID. |
System. |
nameQualifier | The name qualifier. |
System. |
spNameQualifier | The SP name qualifier. |
System. |
format | The format. |
System. |
spProvidedID | The SP provided ID. |
See Also
NameIDType(XmlElement)
Initializes a new instance of the NameIDType
class from XML.
Declaration
public NameIDType(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System. |
xmlElement | The name identifier XML. |
Exceptions
Type | Condition |
---|---|
SAMLSerialization |
Thrown when the XML deserialization fails. |
Properties
Format
Gets or sets the format.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System. |
The format. |
See Also
NameIdentifier
Gets or sets the name ID.
Declaration
public string NameIdentifier { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name ID. |
NameQualifier
Gets or sets the name qualifier.
Declaration
public string NameQualifier { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name qualifier. |
SPNameQualifier
Gets or sets the SP name qualifier.
Declaration
public string SPNameQualifier { get; set; }
Property Value
Type | Description |
---|---|
System. |
The SP name qualifier. |
SPProvidedID
Gets or sets the SP provided ID.
Declaration
public string SPProvidedID { get; set; }
Property Value
Type | Description |
---|---|
System. |
The SP provided ID. |
Methods
ToXml(XmlElement)
Serializes the name identifier to XML.
Declaration
public void ToXml(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System. |
xmlElement | The owning XML element. |
Exceptions
Type | Condition |
---|---|
SAMLSerialization |
Thrown when the XML serialization fails. |