Show / Hide Table of Contents

Class NameIDType

Represents the name identifier type.

Inheritance
System.Object
NameIDType
Issuer
NameID
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
SAMLIdentifiers.NameIdentifierFormats

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
SAMLIdentifiers.NameIdentifierFormats

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.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2004-2022. All rights reserved.