Class DefaultEncryptionManager
java.lang.Object
com.atlassian.crowd.manager.crypto.DefaultEncryptionManager
- All Implemented Interfaces:
EncryptionManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEncryptionManager(Collection<DataReEncryptor> dataReEncryptors, SwitchableEncryptor switchableEncryptor, com.atlassian.beehive.ClusterLockService clusterLockService) -
Method Summary
Modifier and TypeMethodDescriptionvoidChanges currently used encryption key to new one if applicable for current encryptor.voidchangeEncryptor(String encryptorKey) Changes currently used encryptor to the new one represented by encryptorKey.voidDisables encryption, and decrypts all passwords.Returns names of available encryptors.Returns name of default encryptor.voidReencrypts existing passwords with, usingSecretServiceInternalif possible.
-
Field Details
-
LOCK_NAME
- See Also:
-
-
Constructor Details
-
DefaultEncryptionManager
public DefaultEncryptionManager(Collection<DataReEncryptor> dataReEncryptors, SwitchableEncryptor switchableEncryptor, com.atlassian.beehive.ClusterLockService clusterLockService)
-
-
Method Details
-
reEncryptAllPasswords
public void reEncryptAllPasswords()Description copied from interface:EncryptionManagerReencrypts existing passwords with, usingSecretServiceInternalif possible.- Specified by:
reEncryptAllPasswordsin interfaceEncryptionManager
-
changeEncryptor
Description copied from interface:EncryptionManagerChanges currently used encryptor to the new one represented by encryptorKey. Encrypts all passwords with the new encryptor.- Specified by:
changeEncryptorin interfaceEncryptionManager
-
changeEncryptionKey
public void changeEncryptionKey()Description copied from interface:EncryptionManagerChanges currently used encryption key to new one if applicable for current encryptor.- Specified by:
changeEncryptionKeyin interfaceEncryptionManager
-
disableEncryption
public void disableEncryption()Description copied from interface:EncryptionManagerDisables encryption, and decrypts all passwords.- Specified by:
disableEncryptionin interfaceEncryptionManager
-
getAvailableEncryptorNames
Description copied from interface:EncryptionManagerReturns names of available encryptors.- Specified by:
getAvailableEncryptorNamesin interfaceEncryptionManager
-
getDefaultEncryptorName
Description copied from interface:EncryptionManagerReturns name of default encryptor.- Specified by:
getDefaultEncryptorNamein interfaceEncryptionManager
-