Interface EncryptionSettings
- All Known Implementing Classes:
PropertyBasedEncryptionSettings
public interface EncryptionSettings
-
Method Summary
Modifier and TypeMethodDescriptionReturns name of the default encryptor orOptional.empty()
if encryption is disabled.getEncryptionKeyPath
(String encryptor) Gets encryption key path for specified encryptor if present.Returns path of the directory that stores encryption keys.void
setDefaultEncryptor
(String name) Sets the name of the default encryptor.void
setEncryptionKeyPath
(String encryptor, String keyPath) Sets encryption key path for specified encryptor
-
Method Details
-
getDefaultEncryptor
Returns name of the default encryptor orOptional.empty()
if encryption is disabled. -
setDefaultEncryptor
Sets the name of the default encryptor.- Parameters:
name
- name of the default encryptor;null
disables encryption
-
setEncryptionKeyPath
Sets encryption key path for specified encryptor -
getEncryptionKeyPath
Gets encryption key path for specified encryptor if present. -
getKeyFilesDirectoryPath
String getKeyFilesDirectoryPath()Returns path of the directory that stores encryption keys.
-