public interface KeyEncryptionKey
Modifier and Type | Method and Description |
---|---|
String |
getKeyId()
Retrieves the key identifier.
|
byte[] |
unwrapKey(String algorithm,
byte[] encryptedKey)
Decrypts the specified encrypted key using the specified algorithm.
|
byte[] |
wrapKey(String algorithm,
byte[] key)
Encrypts the specified key using the specified algorithm.
|
String getKeyId()
byte[] wrapKey(String algorithm, byte[] key)
algorithm
- The key wrap algorithm used to encrypt the specified key.key
- The key content to be encrypted.byte[] unwrapKey(String algorithm, byte[] encryptedKey)
algorithm
- The key wrap algorithm which was used to encrypt the specified encrypted key.encryptedKey
- The encrypted key content to be decrypted.Copyright © 2021 Microsoft Corporation. All rights reserved.