Class PasswordManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.digest.PasswordManager
-
public class PasswordManager extends Object
Different Camunda versions use different hashing algorithms. In addition, it is possible to add a custom hashing algorithm. ThePasswordManager
ensures that the right algorithm is used for the encryption. Default algorithms: Version: | Algorithm <= Camunda 7.6 | SHA1 >= Camunda 7.7 | SHA512
-
-
Field Summary
Fields Modifier and Type Field Description protected PasswordEncryptor
defaultPasswordEncryptor
static SecurityLogger
LOG
protected Map<String,PasswordEncryptor>
passwordChecker
protected DatabasePrefixHandler
prefixHandler
-
Constructor Summary
Constructors Constructor Description PasswordManager(PasswordEncryptor defaultPasswordEncryptor, List<PasswordEncryptor> customPasswordChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAllPasswordChecker(List<PasswordEncryptor> list)
protected void
addDefaultEncryptor(PasswordEncryptor defaultPasswordEncryptor)
protected void
addPasswordCheckerAndThrowErrorIfAlreadyAvailable(PasswordEncryptor encryptor)
boolean
check(String password, String encrypted)
String
encrypt(String password)
protected PasswordEncryptor
getCorrectEncryptorForPassword(String encryptedPassword)
-
-
-
Field Detail
-
LOG
public static final SecurityLogger LOG
-
passwordChecker
protected Map<String,PasswordEncryptor> passwordChecker
-
defaultPasswordEncryptor
protected PasswordEncryptor defaultPasswordEncryptor
-
prefixHandler
protected DatabasePrefixHandler prefixHandler
-
-
Constructor Detail
-
PasswordManager
public PasswordManager(PasswordEncryptor defaultPasswordEncryptor, List<PasswordEncryptor> customPasswordChecker)
-
-
Method Detail
-
addAllPasswordChecker
protected void addAllPasswordChecker(List<PasswordEncryptor> list)
-
addPasswordCheckerAndThrowErrorIfAlreadyAvailable
protected void addPasswordCheckerAndThrowErrorIfAlreadyAvailable(PasswordEncryptor encryptor)
-
addDefaultEncryptor
protected void addDefaultEncryptor(PasswordEncryptor defaultPasswordEncryptor)
-
getCorrectEncryptorForPassword
protected PasswordEncryptor getCorrectEncryptorForPassword(String encryptedPassword)
-
-