Share via


KeyVaultAccessControlClient Constructors

Definition

Overloads

KeyVaultAccessControlClient()

Initializes a new instance of the KeyVaultAccessControlClient class for mocking.

KeyVaultAccessControlClient(Uri, TokenCredential)

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

KeyVaultAccessControlClient(Uri, TokenCredential, KeyVaultAdministrationClientOptions)

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

KeyVaultAccessControlClient()

Source:
KeyVaultAccessControlClient.cs
Source:
KeyVaultAccessControlClient.cs

Initializes a new instance of the KeyVaultAccessControlClient class for mocking.

protected KeyVaultAccessControlClient ();
Protected Sub New ()

Applies to

KeyVaultAccessControlClient(Uri, TokenCredential)

Source:
KeyVaultAccessControlClient.cs
Source:
KeyVaultAccessControlClient.cs

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

public KeyVaultAccessControlClient (Uri vaultUri, Azure.Core.TokenCredential credential);
new Azure.Security.KeyVault.Administration.KeyVaultAccessControlClient : Uri * Azure.Core.TokenCredential -> Azure.Security.KeyVault.Administration.KeyVaultAccessControlClient
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. You should validate that this URI references a valid Key Vault or Managed HSM 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

KeyVaultAccessControlClient(Uri, TokenCredential, KeyVaultAdministrationClientOptions)

Source:
KeyVaultAccessControlClient.cs
Source:
KeyVaultAccessControlClient.cs

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

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

Parameters

vaultUri
Uri

A Uri to the vault on which the client operates. Appears as "DNS Name" in the Azure portal. You should validate that this URI references a valid Key Vault or Managed HSM 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
KeyVaultAdministrationClientOptions

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

Exceptions

vaultUri or credential is null.

Applies to