Class KeyEncryptionKeyClient
java.lang.Object
com.azure.security.keyvault.keys.cryptography.KeyEncryptionKeyClient
- All Implemented Interfaces:
KeyEncryptionKey
A key client which is used to synchronously wrap or unwrap another key.
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyId()
Get the identifier of the key to use for cryptography operations.byte[]
Decrypts the specified encrypted key using the specified algorithm.byte[]
Encrypts the specified key using the specified algorithm.
-
Method Details
-
getKeyId
Get the identifier of the key to use for cryptography operations.- Specified by:
getKeyId
in interfaceKeyEncryptionKey
- Returns:
- The key identifier.
-
wrapKey
Encrypts the specified key using the specified algorithm.- Specified by:
wrapKey
in interfaceKeyEncryptionKey
- Parameters:
algorithm
- The key wrap algorithm used to encrypt the specified key.key
- The key content to be encrypted.- Returns:
- The encrypted key bytes.
-
unwrapKey
Decrypts the specified encrypted key using the specified algorithm.- Specified by:
unwrapKey
in interfaceKeyEncryptionKey
- Parameters:
algorithm
- The key wrap algorithm which was used to encrypt the specified encrypted key.encryptedKey
- The encrypted key content to be decrypted.- Returns:
- The decrypted key bytes.
-