KeyEncryptionKey Interface
public interface KeyEncryptionKey
A KeyEncryptionKey defines synchronous methods for encrypting and decrypting keys, also known as key wrapping and unwrapping. It also supports signing and verifying data using the configured key.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract String |
getKeyId()
Retrieves the key identifier. |
| abstract byte[] |
unwrapKey(String algorithm, byte[] encryptedKey)
Decrypts the specified encrypted key using the specified algorithm. |
| abstract byte[] |
wrapKey(String algorithm, byte[] key)
Encrypts the specified key using the specified algorithm. |
Method Details
getKeyId
public abstract String getKeyId()
Retrieves the key identifier.
Returns:
unwrapKey
public abstract byte[] unwrapKey(String algorithm, byte[] encryptedKey)
Decrypts the specified encrypted key using the specified algorithm.
Parameters:
Returns:
wrapKey
public abstract byte[] wrapKey(String algorithm, byte[] key)
Encrypts the specified key using the specified algorithm.
Parameters:
Returns: