Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateIssuerNameIdentifier Method
Collapse the table of content
Expand the table of content

Saml2SecurityTokenHandler.CreateIssuerNameIdentifier Method

.NET Framework 4.6 and 4.5

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
)

Parameters

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.

ExceptionCondition
ArgumentNullException

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft