Class KeyEncryptionKeyAsyncClient
java.lang.Object
com.azure.security.keyvault.keys.cryptography.CryptographyAsyncClient
com.azure.security.keyvault.keys.cryptography.KeyEncryptionKeyAsyncClient
- All Implemented Interfaces:
AsyncKeyEncryptionKey
public final class KeyEncryptionKeyAsyncClient
extends CryptographyAsyncClient
implements AsyncKeyEncryptionKey
A key client which is used to asynchronously wrap or unwrap another key.
-
Method Summary
Methods inherited from class com.azure.security.keyvault.keys.cryptography.CryptographyAsyncClient
decrypt, decrypt, encrypt, encrypt, getKey, getKeyWithResponse, sign, signData, unwrapKey, verify, verifyData, wrapKey
-
Method Details
-
getKeyId
Get the identifier of the key to use for cryptography operations.- Specified by:
getKeyId
in interfaceAsyncKeyEncryptionKey
- Returns:
- A
Mono
containing the key identifier.
-
wrapKey
Encrypts the specified key using the specified algorithm.- Specified by:
wrapKey
in interfaceAsyncKeyEncryptionKey
- Parameters:
algorithm
- The key wrap algorithm used to encrypt the specified key.key
- The key content to be encrypted.- Returns:
- A
Mono
containing the encrypted key bytes.
-
unwrapKey
Decrypts the specified encrypted key using the specified algorithm.- Specified by:
unwrapKey
in interfaceAsyncKeyEncryptionKey
- Parameters:
algorithm
- The key wrap algorithm which was used to encrypt the specified encrypted key.encryptedKey
- The encrypted key content to be decrypted.- Returns:
- A
Mono
containing the decrypted key bytes.
-