Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
addHandler (HandlerInterface $handler) | |
checkIfRehashNeeded (string $hash) | |
hashPassword ($plaintext, array $options=[]) | |
validatePassword ($plaintext, $hashed) | |
Fonctions membres publiques statiques | |
static | isSupported () |
Attributs privés | |
$handlers = [] | |
Password handler supporting testing against a chain of handlers
addHandler | ( | HandlerInterface | $handler | ) |
Add a handler to the chain
HandlerInterface | $handler | The password handler to add |
checkIfRehashNeeded | ( | string | $hash | ) |
Check if the password requires rehashing
string | $hash | The password hash to check |
Implémente CheckIfRehashNeededHandlerInterface.
Références $hash, et CheckIfRehashNeededHandlerInterface\checkIfRehashNeeded().
hashPassword | ( | $plaintext, | |
array | $options = [] |
||
) |
Generate a hash for a plaintext password
string | $plaintext | The plaintext password to validate |
array | $options | Options for the hashing operation |
Implémente HandlerInterface.
|
static |
Check that the password handler is supported in this environment
Implémente HandlerInterface.
validatePassword | ( | $plaintext, | |
$hashed | |||
) |
Validate a password
string | $plaintext | The plain text password to validate |
string | $hashed | The password hash to validate against |
Implémente HandlerInterface.
|
private |