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.voidsetDefaultEncryptor(String encryptor) Sets the name of the default encryptor.voidsetEncryptionKeyPath(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:EncryptionSettingsReturns name of the default encryptor orOptional.empty()if encryption is disabled.- Specified by:
getDefaultEncryptorin interfaceEncryptionSettings
-
setDefaultEncryptor
Description copied from interface:EncryptionSettingsSets the name of the default encryptor.- Specified by:
setDefaultEncryptorin interfaceEncryptionSettings- Parameters:
encryptor- name of the default encryptor;nulldisables encryption
-
setEncryptionKeyPath
Description copied from interface:EncryptionSettingsSets encryption key path for specified encryptor- Specified by:
setEncryptionKeyPathin interfaceEncryptionSettings
-
getEncryptionKeyPath
Description copied from interface:EncryptionSettingsGets encryption key path for specified encryptor if present.- Specified by:
getEncryptionKeyPathin interfaceEncryptionSettings
-
getKeyFilesDirectoryPath
Description copied from interface:EncryptionSettingsReturns path of the directory that stores encryption keys.- Specified by:
getKeyFilesDirectoryPathin interfaceEncryptionSettings
-