@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)
EncryptionManager
changeEncryptor
in interface EncryptionManager
public void changeEncryptionKey()
EncryptionManager
changeEncryptionKey
in interface EncryptionManager
public void disableEncryption()
EncryptionManager
disableEncryption
in interface EncryptionManager
public Collection<String> getAvailableEncryptorNames()
EncryptionManager
getAvailableEncryptorNames
in interface EncryptionManager
public Optional<String> getDefaultEncryptorName()
EncryptionManager
getDefaultEncryptorName
in interface EncryptionManager
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences