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

ConfigurationBasedIssuerNameRegistry.AddTrustedIssuer Method

.NET Framework 4.6 and 4.5

Adds an issuer to the dictionary of trusted issuers.

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

public void AddTrustedIssuer(
	string certificateThumbprint,
	string name
)

Parameters

certificateThumbprint
Type: System.String

ASN.1 encoded form of the issuer's certificate thumbprint.

name
Type: System.String

The name of the issuer.

ExceptionCondition
ArgumentException

certificateThumbprint is null or empty.

-or-

name is null or empty.

InvalidOperationException

The issuer specified by certificateThumbprint has already been configured. (The issuer already exists in the ConfiguredTrustedIssuers dictionary.)

You can call this method to add issuers to the ConfiguredTrustedIssuers dictionary. In derived classes, you can call this method from the LoadCustomConfiguration method to add issuers to the dictionary.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft