KeyVaultClient Class

 

Provides the client class to perform cryptographic key operations and vault operations against the Key Vault service.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Azure.KeyVault.KeyVaultClient

Syntax

public class KeyVaultClient
public ref class KeyVaultClient 
type KeyVaultClient = class end
Public Class KeyVaultClient

Constructors

Name Description
System_CAPS_pubmethod KeyVaultClient(KeyVaultClient.AuthenticationCallback)

Initializes a new instance of the KeyVaultClient class.

System_CAPS_pubmethod KeyVaultClient(KeyVaultClient.AuthenticationCallback, HttpClient)

Initializes a new instance of the KeyVaultClient class.

Methods

Name Description
System_CAPS_pubmethod BackupKeyAsync(String, String, CancellationToken)

Asynchronously requests that a backup of the specified key be downloaded to the client.

System_CAPS_pubmethod CreateKeyAsync(String, String, String, Nullable<Int32>, String[], KeyAttributes, Dictionary<String, String>, CancellationToken)

Asynchronously creates a new, named, key in the specified vault.

System_CAPS_pubmethod DecryptAsync(String, String, Byte[], CancellationToken)

Asynchronously decrypts a single block of encrypted data.

System_CAPS_pubmethod DeleteKeyAsync(String, String, CancellationToken)

Asynchronously deletes the specified key.

System_CAPS_pubmethod DeleteSecretAsync(String, String, CancellationToken)

Asynchronously deletes a secret from the specified vault.

System_CAPS_pubmethod Do<T>(Func<Task<T>>)

Processes the asynchronous operation.

System_CAPS_pubmethod EncryptAsync(String, String, Byte[], CancellationToken)

Asynchronously encrypts a single block of data. The amount of data that may be encrypted is determined by the target key type and the encryption algorithm.

System_CAPS_pubmethod EncryptAsync(String, String, String, String, Byte[], CancellationToken)

Asynchronously encrypts a single block of data. The amount of data that may be encrypted is determined by the target key type and the encryption algorithm.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetKeyAsync(String, CancellationToken)

Asynchronously retrieves the public portion of a key plus its attributes.

System_CAPS_pubmethod GetKeyAsync(String, String, String, CancellationToken)

Asynchronously retrieves the public portion of a key plus its attributes.

System_CAPS_pubmethod GetKeysAsync(String, Nullable<Int32>, CancellationToken)

Asynchronously list keys in the specified vault.

System_CAPS_pubmethod GetKeysNextAsync(String, CancellationToken)

Asynchronously list the next page of keys.

System_CAPS_pubmethod GetKeyVersionsAsync(String, String, Nullable<Int32>, CancellationToken)

Asynchronously list the versions of the specified key.

System_CAPS_pubmethod GetKeyVersionsNextAsync(String, CancellationToken)

Asynchronously list the next page of key versions.

System_CAPS_pubmethod GetSecretAsync(String, CancellationToken)

Asynchronously gets a secret.

System_CAPS_pubmethod GetSecretAsync(String, String, String, CancellationToken)

Asynchronously gets a secret.

System_CAPS_pubmethod GetSecretsAsync(String, Nullable<Int32>, CancellationToken)

Asynchronously list secrets in the specified vault.

System_CAPS_pubmethod GetSecretsNextAsync(String, CancellationToken)

Asynchronously list the next page of secrets.

System_CAPS_pubmethod GetSecretVersionsAsync(String, String, Nullable<Int32>, CancellationToken)

Asynchronously list the versions of a secret.

System_CAPS_pubmethod GetSecretVersionsNextAsync(String, CancellationToken)

Asynchronously list the next page of versions of a secret.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ImportKeyAsync(String, String, KeyBundle, Nullable<Boolean>, CancellationToken)

Asynchronously imports a key into the specified vault.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RestoreKeyAsync(String, Byte[], CancellationToken)

Asynchronously restores the backup key in to a vault.

System_CAPS_pubmethod SetSecretAsync(String, String, String, Dictionary<String, String>, String, SecretAttributes, CancellationToken)

Asynchronously sets a secret in the specified vault.

System_CAPS_pubmethod SignAsync(String, String, Byte[], CancellationToken)

Asynchronously creates a signature from a digest using the specified key in the vault.

System_CAPS_pubmethod SignAsync(String, String, String, String, Byte[], CancellationToken)

Asynchronously creates a signature from a digest using the specified key in the vault.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UnwrapKeyAsync(String, String, Byte[], CancellationToken)

Asynchronously unwraps a symmetric key using the specified key in the vault that has initially been used for wrapping the key.

System_CAPS_pubmethod UpdateKeyAsync(String, String, String[], KeyAttributes, Dictionary<String, String>, CancellationToken)

Asynchronously updates the Key Attributes associated with the specified key.

System_CAPS_pubmethod UpdateKeyAsync(String, String[], KeyAttributes, Dictionary<String, String>, CancellationToken)

Asynchronously updates the Key Attributes associated with the specified key.

System_CAPS_pubmethod UpdateSecretAsync(String, String, SecretAttributes, Dictionary<String, String>, CancellationToken)

Asynchronously updates the attributes associated with the specified secret.

System_CAPS_pubmethod UpdateSecretAsync(String, String, String, SecretAttributes, Dictionary<String, String>, CancellationToken)

Asynchronously updates the attributes associated with the specified secret.

System_CAPS_pubmethod VerifyAsync(String, String, Byte[], Byte[], CancellationToken)

Asynchronously verifies a signature using the specified key.

System_CAPS_pubmethod WrapKeyAsync(String, String, Byte[], CancellationToken)

Asynchronously wraps a symmetric key using the specified key.

System_CAPS_pubmethod WrapKeyAsync(String, String, String, String, Byte[], CancellationToken)

Asynchronously wraps a symmetric key using the specified key.

Extension Methods

Name Description
System_CAPS_pubmethod DecryptDataAsync(JsonWebKey, String, Byte[])

Overloaded. Asynchronously decrypts a single block of encrypted data.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod DecryptDataAsync(KeyBundle, String, Byte[])

Overloaded. Asynchronously decrypts a single block of encrypted data.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod EncryptDataAsync(JsonWebKey, String, Byte[])

Overloaded. Asynchronously encrypts a single block of data. The amount of data that may be encrypted is determined by the target key type and the encryption algorithm.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod EncryptDataAsync(KeyBundle, String, Byte[])

Overloaded. Asynchronously encrypts a single block of data. The amount of data that may be encrypted is determined by the target key type and the encryption algorithm.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod SignAsync(JsonWebKey, String, Byte[])

Overloaded. Asynchronously creates a signature from a digest using the specified key in the vault.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod SignAsync(KeyBundle, String, Byte[])

Overloaded. Asynchronously creates a signature from a digest using the specified key in the vault.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod UnwrapKeyAsync(JsonWebKey, Byte[], String)

Overloaded. Asynchronously unwraps a symmetric key using the specified wrapping key and algorithm.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod UnwrapKeyAsync(KeyBundle, Byte[], String)

Overloaded. Asynchronously unwraps a symmetric key using the specified wrapping key and algorithm.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod VerifyAsync(JsonWebKey, String, Byte[], Byte[])

Overloaded. Indicates a value whether the verification is successful.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod VerifyAsync(KeyBundle, String, Byte[], Byte[])

Overloaded. Indicates a value whether the verification is successful.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod WrapKeyAsync(JsonWebKey, Byte[], String)

Overloaded. Asynchronously wraps a symmetric key using the specified wrapping key and algorithm.(Defined by KeyVaultClientExtensions.)

System_CAPS_pubmethod WrapKeyAsync(KeyBundle, Byte[], String)

Overloaded. Asynchronously wraps a symmetric key using the specified wrapping key and algorithm.(Defined by KeyVaultClientExtensions.)

Thread Safety

This class is thread-safe.

See Also

Microsoft.Azure.KeyVault Namespace

Return to top