Class KeyEncryptionKeyClient
- java.lang.Object
-
- com.azure.security.keyvault.keys.cryptography.KeyEncryptionKeyClient
-
- All Implemented Interfaces:
com.azure.core.cryptography.KeyEncryptionKey
public final class KeyEncryptionKeyClient extends Object implements com.azure.core.cryptography.KeyEncryptionKey
A key client which is used to synchronously wrap or unwrap another key.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeyId()
Get the identifier of the key to use for cryptography operations.byte[]
unwrapKey(String algorithm, byte[] encryptedKey)
byte[]
wrapKey(String algorithm, byte[] key)
-
-
-
Method Detail
-
getKeyId
public String getKeyId()
Get the identifier of the key to use for cryptography operations.- Specified by:
getKeyId
in interfacecom.azure.core.cryptography.KeyEncryptionKey
- Returns:
- The key identifier.
-
wrapKey
public byte[] wrapKey(String algorithm, byte[] key)
- Specified by:
wrapKey
in interfacecom.azure.core.cryptography.KeyEncryptionKey
-
unwrapKey
public byte[] unwrapKey(String algorithm, byte[] encryptedKey)
- Specified by:
unwrapKey
in interfacecom.azure.core.cryptography.KeyEncryptionKey
-
-