Class KeyEncryptionKeyAsyncClient
java.lang.Object
com.azure.security.keyvault.keys.cryptography.CryptographyAsyncClient
com.azure.security.keyvault.keys.cryptography.KeyEncryptionKeyAsyncClient
- All Implemented Interfaces:
com.azure.core.cryptography.AsyncKeyEncryptionKey
public final class KeyEncryptionKeyAsyncClient
extends CryptographyAsyncClient
implements com.azure.core.cryptography.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:
getKeyIdin interfacecom.azure.core.cryptography.AsyncKeyEncryptionKey- Returns:
- A
Monocontaining the key identifier.
-
wrapKey
Encrypts the specified key using the specified algorithm.- Specified by:
wrapKeyin interfacecom.azure.core.cryptography.AsyncKeyEncryptionKey- Parameters:
algorithm- The key wrap algorithm used to encrypt the specified key.key- The key content to be encrypted.- Returns:
- A
Monocontaining the encrypted key bytes.
-
unwrapKey
Decrypts the specified encrypted key using the specified algorithm.- Specified by:
unwrapKeyin interfacecom.azure.core.cryptography.AsyncKeyEncryptionKey- 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
Monocontaining the decrypted key bytes.
-