Interface EncryptionSettings
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.voidsetDefaultEncryptor(String name) Sets the name of the default encryptor.voidsetEncryptionKeyPath(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;nulldisables 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.
-