@Transactional public class PropertyBasedEncryptionSettings extends Object implements EncryptionSettings
| Constructor and Description |
|---|
PropertyBasedEncryptionSettings(PropertyManager propertyManager,
HomeDirectoryService homeDirectoryService) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getDefaultEncryptor()
Returns name of the default encryptor or
Optional.empty() if encryption is disabled. |
Optional<String> |
getEncryptionKeyPath(String encryptor)
Gets encryption key path for specified encryptor if present.
|
String |
getKeyFilesDirectoryPath()
Returns path of the directory that stores encryption keys.
|
void |
setDefaultEncryptor(String encryptor)
Sets the name of the default encryptor.
|
void |
setEncryptionKeyPath(String encryptor,
String keyPath)
Sets encryption key path for specified encryptor
|
public PropertyBasedEncryptionSettings(PropertyManager propertyManager, HomeDirectoryService homeDirectoryService)
public Optional<String> getDefaultEncryptor()
EncryptionSettingsOptional.empty() if encryption is disabled.getDefaultEncryptor in interface EncryptionSettingspublic void setDefaultEncryptor(String encryptor)
EncryptionSettingssetDefaultEncryptor in interface EncryptionSettingsencryptor - name of the default encryptor; null disables encryptionpublic void setEncryptionKeyPath(String encryptor, String keyPath)
EncryptionSettingssetEncryptionKeyPath in interface EncryptionSettingspublic Optional<String> getEncryptionKeyPath(String encryptor)
EncryptionSettingsgetEncryptionKeyPath in interface EncryptionSettingspublic String getKeyFilesDirectoryPath()
EncryptionSettingsgetKeyFilesDirectoryPath in interface EncryptionSettingsCopyright © 2021 Atlassian. All rights reserved.