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.String | 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.String | nameID | The name ID. |
System.String | nameQualifier | The name qualifier. |
System.String | spNameQualifier | The SP name qualifier. |
System.String | format | The format. |
System.String | 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.Xml.XmlElement | xmlElement | The name identifier XML. |
Exceptions
Type | Condition |
---|---|
SAMLSerializationException | Thrown when the XML deserialization fails. |
Properties
Format
Gets or sets the format.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The format. |
See Also
NameIdentifier
Gets or sets the name ID.
Declaration
public string NameIdentifier { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name ID. |
NameQualifier
Gets or sets the name qualifier.
Declaration
public string NameQualifier { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name qualifier. |
SPNameQualifier
Gets or sets the SP name qualifier.
Declaration
public string SPNameQualifier { get; set; }
Property Value
Type | Description |
---|---|
System.String | The SP name qualifier. |
SPProvidedID
Gets or sets the SP provided ID.
Declaration
public string SPProvidedID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The SP provided ID. |
Methods
ToXml(XmlElement)
Serializes the name identifier to XML.
Declaration
public void ToXml(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The owning XML element. |
Exceptions
Type | Condition |
---|---|
SAMLSerializationException | Thrown when the XML serialization fails. |