ChainedHandler
Implements HandlerInterface, CheckIfRehashNeededHandlerInterfacePassword handler supporting testing against a chain of handlers
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
addHandler
Add a handler to the chain
addHandler(\Joomla\Authentication\Password\HandlerInterface handler) :
since |
4.0.0 |
---|
Arguments
- handler
HandlerInterface
The password handler to add
Response
void
checkIfRehashNeeded
Check if the password requires rehashing
checkIfRehashNeeded( hash) :
since |
4.0.0 |
---|
Arguments
- hash
string
The password hash to check
Response
bool
hashPassword
Generate a hash for a plaintext password
hashPassword( plaintext, mixed||string|int options = []) :
since |
4.0.0 |
---|---|
throws |
|
Arguments
- plaintext
string
The plaintext password to validate- options
array<string|int, mixed>
Options for the hashing operation
Response
void
isSupported
Check that the password handler is supported in this environment
isSupported() :
static
since |
4.0.0 |
---|
Response
bool
validatePassword
Validate a password
validatePassword( plaintext, hashed) :
since |
4.0.0 |
---|
Arguments
- plaintext
string
The plain text password to validate- hashed
string
The password hash to validate against
Response
bool
Properties
handlers
The password handlers in use by this chain.
since |
4.0.0 |
---|
Type(s)
array<string|int, HandlerInterface>