@Transactional public class DefaultEncryptionManager extends Object implements EncryptionManager
| Constructor and Description |
|---|
DefaultEncryptionManager(Collection<DataReEncryptor> dataReEncryptors,
SwitchableEncryptor switchableEncryptor,
com.atlassian.beehive.ClusterLockService clusterLockService) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeEncryptionKey()
Changes currently used encryption key to new one if applicable for current encryptor.
|
void |
changeEncryptor(String encryptorKey)
Changes currently used encryptor to the new one represented by encryptorKey.
|
void |
disableEncryption()
Disables encryption, and decrypts all passwords.
|
Collection<String> |
getAvailableEncryptorNames()
Returns names of available encryptors.
|
Optional<String> |
getDefaultEncryptorName()
Returns name of default encryptor.
|
public static final String LOCK_NAME
public DefaultEncryptionManager(Collection<DataReEncryptor> dataReEncryptors, SwitchableEncryptor switchableEncryptor, com.atlassian.beehive.ClusterLockService clusterLockService)
public void changeEncryptor(String encryptorKey)
EncryptionManagerchangeEncryptor in interface EncryptionManagerpublic void changeEncryptionKey()
EncryptionManagerchangeEncryptionKey in interface EncryptionManagerpublic void disableEncryption()
EncryptionManagerdisableEncryption in interface EncryptionManagerpublic Collection<String> getAvailableEncryptorNames()
EncryptionManagergetAvailableEncryptorNames in interface EncryptionManagerpublic Optional<String> getDefaultEncryptorName()
EncryptionManagergetDefaultEncryptorName in interface EncryptionManagerCopyright © 2024 Atlassian. All rights reserved.