Package com.oracle.bmc.encryption
Interface MasterKey
- 
- All Known Implementing Classes:
- KmsMasterKey
 
 public interface MasterKeyRepresents a MasterKey used to encrypt/decrypt Data Key.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdecryptDataKey(String encryptedDataKey, String masterKeyId)Decrypts and returns data key that was encrypted under this master key.DataKeygenerateDataEncryptionKey(CryptoAlgorithm cryptoAlgorithm)Generates a data encryption key (DEK) based on the algorithm provided using this MasterKey.
 
- 
- 
- 
Method Detail- 
generateDataEncryptionKeyDataKey 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
 
 
- 
 
-