Package com.azure.core.cryptography
Interface AsyncKeyEncryptionKey
public interface AsyncKeyEncryptionKey
A key which is used to asynchronously encrypt, or wrap, another key.
-
Method Details
-
getKeyId
Retrieves the key identifier.- Returns:
- A
Mono
containing key identifier.
-
wrapKey
Encrypts the specified key using the specified algorithm.- 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.- 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.
-