Saml2SecurityTokenHandler.CreateIssuerNameIdentifier Method (SecurityTokenDescriptor)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a name identifier that identifies the assertion issuer.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual Saml2NameIdentifier CreateIssuerNameIdentifier(
	SecurityTokenDescriptor tokenDescriptor


Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor from which to create the name identifier.

Return Value

Type: System.IdentityModel.Tokens.Saml2NameIdentifier

A Saml2NameIdentifier that represents the name identifier.

Exception Condition

tokenDescriptor is null.

SAML2 assertions must contain a name identifier for the issuer. This method may not return null.

The default implementation creates a simple name identifier from the TokenIssuerName property of the tokenDescriptor.

.NET Framework
Available since 4.5
Return to top