Class PasswordManager
java.lang.Object
org.camunda.bpm.engine.impl.digest.PasswordManager
Different Camunda versions use different hashing algorithms. In addition, it is possible
to add a custom hashing algorithm. The
PasswordManager
ensures that the right
algorithm is used for the encryption.
Default algorithms:
Version: | Algorithm
<= Camunda 7.6 | SHA1
>= Camunda 7.7 | SHA512-
Field Summary
Modifier and TypeFieldDescriptionprotected PasswordEncryptor
static final SecurityLogger
protected Map<String,
PasswordEncryptor> protected DatabasePrefixHandler
-
Constructor Summary
ConstructorDescriptionPasswordManager
(PasswordEncryptor defaultPasswordEncryptor, List<PasswordEncryptor> customPasswordChecker) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
addDefaultEncryptor
(PasswordEncryptor defaultPasswordEncryptor) protected void
boolean
protected PasswordEncryptor
getCorrectEncryptorForPassword
(String encryptedPassword)
-
Field Details
-
LOG
-
passwordChecker
-
defaultPasswordEncryptor
-
prefixHandler
-
-
Constructor Details
-
PasswordManager
public PasswordManager(PasswordEncryptor defaultPasswordEncryptor, List<PasswordEncryptor> customPasswordChecker)
-
-
Method Details
-
addAllPasswordChecker
-
addPasswordCheckerAndThrowErrorIfAlreadyAvailable
-
addDefaultEncryptor
-
encrypt
-
check
-
getCorrectEncryptorForPassword
-