ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilSetupPasswordManager. More...
Public Member Functions | |
__construct (array $config=[]) | |
ilSetupPasswordManager constructor. More... | |
getEncoderFactory () | |
setEncoderFactory (\ilSetupPasswordEncoderFactory $encoderFactory) | |
getEncoderName () | |
setEncoderName (string $encoderName) | |
encodePassword (string $raw) | |
Encodes the raw password based on the relevant encoding strategy. More... | |
verifyPassword (string $encoded, string $raw, callable $passwordReHashCallback) | |
Verifies if the passed raw password matches the encoded one, based on the current encoding strategy. More... | |
Private Attributes | |
$encoderName | |
$encoderFactory | |
Class ilSetupPasswordManager.
Definition at line 8 of file class.ilSetupPasswordManager.php.
ilSetupPasswordManager::__construct | ( | array | $config = [] | ) |
ilSetupPasswordManager constructor.
array | $config |
Exception |
Definition at line 21 of file class.ilSetupPasswordManager.php.
References $config, getEncoderFactory(), getEncoderName(), setEncoderFactory(), and setEncoderName().
ilSetupPasswordManager::encodePassword | ( | string | $raw | ) |
Encodes the raw password based on the relevant encoding strategy.
string | $raw |
Definition at line 87 of file class.ilSetupPasswordManager.php.
References getEncoderFactory(), and getEncoderName().
ilSetupPasswordManager::getEncoderFactory | ( | ) |
Definition at line 52 of file class.ilSetupPasswordManager.php.
References $encoderFactory.
Referenced by __construct(), encodePassword(), and verifyPassword().
ilSetupPasswordManager::getEncoderName | ( | ) |
Definition at line 68 of file class.ilSetupPasswordManager.php.
References $encoderName.
Referenced by __construct(), encodePassword(), and verifyPassword().
ilSetupPasswordManager::setEncoderFactory | ( | \ilSetupPasswordEncoderFactory | $encoderFactory | ) |
\ilSetupPasswordEncoderFactory | $encoderFactory |
Definition at line 60 of file class.ilSetupPasswordManager.php.
References $encoderFactory.
Referenced by __construct().
ilSetupPasswordManager::setEncoderName | ( | string | $encoderName | ) |
string | $encoderName |
Definition at line 76 of file class.ilSetupPasswordManager.php.
References $encoderName.
Referenced by __construct().
ilSetupPasswordManager::verifyPassword | ( | string | $encoded, |
string | $raw, | ||
callable | $passwordReHashCallback | ||
) |
Verifies if the passed raw password matches the encoded one, based on the current encoding strategy.
string | $encoded | |
string | $raw | |
callable | $passwordReHashCallback | A callback passed by consumer, which accepts the raw password and is called if the encoder strategy decides a password has to be re-hashed. |
Definition at line 103 of file class.ilSetupPasswordManager.php.
References getEncoderFactory(), and getEncoderName().
|
private |
Definition at line 14 of file class.ilSetupPasswordManager.php.
Referenced by getEncoderFactory(), and setEncoderFactory().
|
private |
Definition at line 11 of file class.ilSetupPasswordManager.php.
Referenced by getEncoderName(), and setEncoderName().