ConfigurationBasedIssuerNameRegistry.GetIssuerName Method (SecurityToken)

.NET Framework (current version)
 
System_CAPS_noteNote

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

Returns the issuer name associated with the specified X509SecurityToken by mapping the certificate thumbprint to a name in the trusted issuers dictionary.

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

public override string GetIssuerName(
	SecurityToken securityToken
)

Parameters

securityToken
Type: System.IdentityModel.Tokens.SecurityToken

The security token for which the issuer name is requested. Should be assignable as X509SecurityToken.

Return Value

Type: System.String

The issuer name if an entry for the certificate thumbprint of the token exists in the ConfiguredTrustedIssuers dictionary; otherwise, null.

Exception Condition
ArgumentNullException

securityToken is null.

The default implementation searches the ConfiguredTrustedIssuers dictionary for the thumbprint of the X.509 certificate specified in securityToken. If an entry is found, the issuer name is returned; otherwise, null is returned. If securityToken is not assignable from X509SecurityToken, null is returned.

.NET Framework
Available since 4.5
Return to top
Show: