Επεξεργασία

Κοινή χρήση μέσω


ConfigurationBasedIssuerNameRegistry.AddTrustedIssuer(String, String) Method

Definition

Adds an issuer to the dictionary of trusted issuers.

public:
 void AddTrustedIssuer(System::String ^ certificateThumbprint, System::String ^ name);
public void AddTrustedIssuer (string certificateThumbprint, string name);
member this.AddTrustedIssuer : string * string -> unit
Public Sub AddTrustedIssuer (certificateThumbprint As String, name As String)

Parameters

certificateThumbprint
String

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

name
String

The name of the issuer.

Exceptions

certificateThumbprint is null or empty.

-or-

name is null or empty.

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

Remarks

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.

Applies to