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