GetIssuerName Method (SecurityToken)
Collapse the table of content
Expand the table of content

ConfigurationBasedIssuerNameRegistry.GetIssuerName Method (SecurityToken)

.NET Framework (current version)
 

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:
© 2016 Microsoft