Class DefaultEncryptionManager
java.lang.Object
com.atlassian.crowd.manager.crypto.DefaultEncryptionManager
- All Implemented Interfaces:
EncryptionManager
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultEncryptionManager
(Collection<DataReEncryptor> dataReEncryptors, SwitchableEncryptor switchableEncryptor, com.atlassian.beehive.ClusterLockService clusterLockService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Disables encryption, and decrypts all passwords.Returns names of available encryptors.Returns name of default encryptor.
-
Field Details
-
LOCK_NAME
- See Also:
-
-
Constructor Details
-
DefaultEncryptionManager
public DefaultEncryptionManager(Collection<DataReEncryptor> dataReEncryptors, SwitchableEncryptor switchableEncryptor, com.atlassian.beehive.ClusterLockService clusterLockService)
-
-
Method Details
-
changeEncryptor
Description copied from interface:EncryptionManager
Changes currently used encryptor to the new one represented by encryptorKey. Encrypts all passwords with the new encryptor.- Specified by:
changeEncryptor
in interfaceEncryptionManager
-
changeEncryptionKey
public void changeEncryptionKey()Description copied from interface:EncryptionManager
Changes currently used encryption key to new one if applicable for current encryptor.- Specified by:
changeEncryptionKey
in interfaceEncryptionManager
-
disableEncryption
public void disableEncryption()Description copied from interface:EncryptionManager
Disables encryption, and decrypts all passwords.- Specified by:
disableEncryption
in interfaceEncryptionManager
-
getAvailableEncryptorNames
Description copied from interface:EncryptionManager
Returns names of available encryptors.- Specified by:
getAvailableEncryptorNames
in interfaceEncryptionManager
-
getDefaultEncryptorName
Description copied from interface:EncryptionManager
Returns name of default encryptor.- Specified by:
getDefaultEncryptorName
in interfaceEncryptionManager
-