ConfigurationBasedIssuerNameRegistry.GetIssuerName(SecurityToken) Method

Definition

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

public:
 override System::String ^ GetIssuerName(System::IdentityModel::Tokens::SecurityToken ^ securityToken);
public override string GetIssuerName (System.IdentityModel.Tokens.SecurityToken securityToken);
override this.GetIssuerName : System.IdentityModel.Tokens.SecurityToken -> string
Public Overrides Function GetIssuerName (securityToken As SecurityToken) As String

Parameters

securityToken
SecurityToken

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

Returns

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

Exceptions

securityToken is null.

Remarks

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.

Applies to