แก้ไข

แชร์ผ่าน


Saml2SecurityTokenHandler.CreateIssuerNameIdentifier Method

Definition

Creates a name identifier that identifies the assertion issuer.

protected:
 virtual System::IdentityModel::Tokens::Saml2NameIdentifier ^ CreateIssuerNameIdentifier(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.Saml2NameIdentifier CreateIssuerNameIdentifier (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateIssuerNameIdentifier : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2NameIdentifier
override this.CreateIssuerNameIdentifier : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.Saml2NameIdentifier
Protected Overridable Function CreateIssuerNameIdentifier (tokenDescriptor As SecurityTokenDescriptor) As Saml2NameIdentifier

Parameters

tokenDescriptor
SecurityTokenDescriptor

The token descriptor from which to create the name identifier.

Returns

A Saml2NameIdentifier that represents the name identifier.

Exceptions

tokenDescriptor is null.

Remarks

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.

Applies to