IKeyProviderGetKeyAsync Method

Gets the public part of a stored key

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9017.0
C#
Task<KeyVaultKey?> GetKeyAsync(
	string name,
	bool createIfNotFound = false,
	string? version = null
)

Parameters

name  String
The name of the key
createIfNotFound  Boolean  (Optional)
Creates a new key if the named key is not found
version  String  (Optional)
The version of the key

Return Value

TaskKeyVaultKey
KeyVaultKey

Remarks

The get key operation is applicable to all key types. If the requested key is symmetric, then no key is released in the response. This operation requires the keys/get permission. If createIfNotFound is true, this operation requires the keys/create permission.

See Also