Aracılığıyla paylaş


CertificateClient Constructors

Definition

Overloads

CertificateClient()

Initializes a new instance of the CertificateClient class for mocking.

CertificateClient(Uri, TokenCredential)

Initializes a new instance of the CertificateClient class for the specified vault.

CertificateClient(Uri, TokenCredential, CertificateClientOptions)

Initializes a new instance of the CertificateClient class for the specified vault.

CertificateClient()

Source:
CertificateClient.cs
Source:
CertificateClient.cs

Initializes a new instance of the CertificateClient class for mocking.

protected CertificateClient ();
Protected Sub New ()

Applies to

CertificateClient(Uri, TokenCredential)

Source:
CertificateClient.cs
Source:
CertificateClient.cs

Initializes a new instance of the CertificateClient class for the specified vault.

public CertificateClient (Uri vaultUri, Azure.Core.TokenCredential credential);
new Azure.Security.KeyVault.Certificates.CertificateClient : Uri * Azure.Core.TokenCredential -> Azure.Security.KeyVault.Certificates.CertificateClient
Public Sub New (vaultUri As Uri, credential As TokenCredential)

Parameters

vaultUri
Uri

A Uri to the vault on which the client operates. Appears as "DNS Name" in the Azure portal. If you have a certificate Uri, use KeyVaultCertificateIdentifier to parse the VaultUri and other information. You should validate that this URI references a valid Key Vault resource. See https://aka.ms/azsdk/blog/vault-uri for details.

credential
TokenCredential

A TokenCredential used to authenticate requests to the vault, such as DefaultAzureCredential.

Exceptions

vaultUri or credential is null.

Applies to

CertificateClient(Uri, TokenCredential, CertificateClientOptions)

Source:
CertificateClient.cs
Source:
CertificateClient.cs

Initializes a new instance of the CertificateClient class for the specified vault.

public CertificateClient (Uri vaultUri, Azure.Core.TokenCredential credential, Azure.Security.KeyVault.Certificates.CertificateClientOptions options);
new Azure.Security.KeyVault.Certificates.CertificateClient : Uri * Azure.Core.TokenCredential * Azure.Security.KeyVault.Certificates.CertificateClientOptions -> Azure.Security.KeyVault.Certificates.CertificateClient
Public Sub New (vaultUri As Uri, credential As TokenCredential, options As CertificateClientOptions)

Parameters

vaultUri
Uri

A Uri to the vault on which the client operates. Appears as "DNS Name" in the Azure portal. If you have a certificate Uri, use KeyVaultCertificateIdentifier to parse the VaultUri and other information. You should validate that this URI references a valid Key Vault resource. See https://aka.ms/azsdk/blog/vault-uri for details.

credential
TokenCredential

A TokenCredential used to authenticate requests to the vault, such as DefaultAzureCredential.

options
CertificateClientOptions

CertificateClientOptions that allow to configure the management of the request sent to Key Vault.

Exceptions

vaultUri or credential is null.

Applies to