Package com.azure.core.cryptography
Interface AsyncKeyEncryptionKey
-
public interface AsyncKeyEncryptionKeyA key which is used to asynchronously encrypt, or wrap, another key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<String>getKeyId()Retrieves the key identifier.Mono<byte[]>unwrapKey(String algorithm, byte[] encryptedKey)Decrypts the specified encrypted key using the specified algorithm.Mono<byte[]>wrapKey(String algorithm, byte[] key)Encrypts the specified key using the specified algorithm.
-
-
-
Method Detail
-
getKeyId
Mono<String> getKeyId()
Retrieves the key identifier.- Returns:
- A
Monocontaining key identifier.
-
wrapKey
Mono<byte[]> wrapKey(String algorithm, byte[] key)
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
Monocontaining the encrypted key bytes.
-
unwrapKey
Mono<byte[]> unwrapKey(String algorithm, byte[] encryptedKey)
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
Monocontaining the decrypted key bytes.
-
-