@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()
EncryptionSettings
Optional.empty()
if encryption is disabled.getDefaultEncryptor
in interface EncryptionSettings
public void setDefaultEncryptor(String encryptor)
EncryptionSettings
setDefaultEncryptor
in interface EncryptionSettings
encryptor
- name of the default encryptor; null
disables encryptionpublic void setEncryptionKeyPath(String encryptor, String keyPath)
EncryptionSettings
setEncryptionKeyPath
in interface EncryptionSettings
public Optional<String> getEncryptionKeyPath(String encryptor)
EncryptionSettings
getEncryptionKeyPath
in interface EncryptionSettings
public String getKeyFilesDirectoryPath()
EncryptionSettings
getKeyFilesDirectoryPath
in interface EncryptionSettings
Copyright © 2021 Atlassian. All rights reserved.