Class PropertyBasedEncryptionSettings
java.lang.Object
com.atlassian.crowd.manager.property.PropertyBasedEncryptionSettings
- All Implemented Interfaces:
EncryptionSettings
@Transactional
public class PropertyBasedEncryptionSettings
extends Object
implements EncryptionSettings
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyBasedEncryptionSettings
(PropertyManager propertyManager, HomeDirectoryService homeDirectoryService) -
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 encryptor) Sets the name of the default encryptor.void
setEncryptionKeyPath
(String encryptor, String keyPath) Sets encryption key path for specified encryptor
-
Constructor Details
-
PropertyBasedEncryptionSettings
public PropertyBasedEncryptionSettings(PropertyManager propertyManager, HomeDirectoryService homeDirectoryService)
-
-
Method Details
-
getDefaultEncryptor
Description copied from interface:EncryptionSettings
Returns name of the default encryptor orOptional.empty()
if encryption is disabled.- Specified by:
getDefaultEncryptor
in interfaceEncryptionSettings
-
setDefaultEncryptor
Description copied from interface:EncryptionSettings
Sets the name of the default encryptor.- Specified by:
setDefaultEncryptor
in interfaceEncryptionSettings
- Parameters:
encryptor
- name of the default encryptor;null
disables encryption
-
setEncryptionKeyPath
Description copied from interface:EncryptionSettings
Sets encryption key path for specified encryptor- Specified by:
setEncryptionKeyPath
in interfaceEncryptionSettings
-
getEncryptionKeyPath
Description copied from interface:EncryptionSettings
Gets encryption key path for specified encryptor if present.- Specified by:
getEncryptionKeyPath
in interfaceEncryptionSettings
-
getKeyFilesDirectoryPath
Description copied from interface:EncryptionSettings
Returns path of the directory that stores encryption keys.- Specified by:
getKeyFilesDirectoryPath
in interfaceEncryptionSettings
-