Package com.oracle.bmc.encryption
Interface MasterKey
-
- All Known Implementing Classes:
KmsMasterKey
public interface MasterKey
Represents a MasterKey used to encrypt/decrypt Data Key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
generateDataEncryptionKey
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.
- Parameters:
cryptoAlgorithm
-- Returns:
- DataKey
-
-