public class PasswordManager extends Object
PasswordManager
ensures that the right
algorithm is used for the encryption.
Default algorithms:
Version: | Algorithm
<= Camunda 7.6 | SHA1
>= Camunda 7.7 | SHA512Modifier and Type | Field and Description |
---|---|
protected PasswordEncryptor |
defaultPasswordEncryptor |
static SecurityLogger |
LOG |
protected Map<String,PasswordEncryptor> |
passwordChecker |
protected DatabasePrefixHandler |
prefixHandler |
Constructor and Description |
---|
PasswordManager(PasswordEncryptor defaultPasswordEncryptor,
List<PasswordEncryptor> customPasswordChecker) |
Modifier and Type | Method and 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) |
public static final SecurityLogger LOG
protected Map<String,PasswordEncryptor> passwordChecker
protected PasswordEncryptor defaultPasswordEncryptor
protected DatabasePrefixHandler prefixHandler
public PasswordManager(PasswordEncryptor defaultPasswordEncryptor, List<PasswordEncryptor> customPasswordChecker)
protected void addAllPasswordChecker(List<PasswordEncryptor> list)
protected void addPasswordCheckerAndThrowErrorIfAlreadyAvailable(PasswordEncryptor encryptor)
protected void addDefaultEncryptor(PasswordEncryptor defaultPasswordEncryptor)
protected PasswordEncryptor getCorrectEncryptorForPassword(String encryptedPassword)
Copyright © 2022. All rights reserved.