public interface MasterKey
Represents a MasterKey used to encrypt/decrypt Data Key.
Modifier and Type | Method and Description |
---|---|
String |
decryptDataKey(String encryptedDataKey,
String masterKeyId)
Decrypts and returns data key that was encrypted under this master key.
|
DataKey |
generateDataEncryptionKey(CryptoAlgorithm cryptoAlgorithm)
Generates a data encryption key (DEK) based on the algorithm provided using this MasterKey.
|
DataKey generateDataEncryptionKey(CryptoAlgorithm cryptoAlgorithm)
Generates a data encryption key (DEK) based on the algorithm provided using this MasterKey. The returned DataKey includes a copy of the DEK encrypted under this MasterKey.
cryptoAlgorithm
- Copyright © 2016–2024. All rights reserved.