Back to Joomla project (class list)

Class ChainedHandler - list of methods

Password handler supporting testing against a chain of handlers

Extends

Package: Joomla\CMS\Authentication\Password
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Authentication/Password/ChainedHandler.php
Project: Joomla

Method Summary

public void
(\Joomla\Authentication\Password\HandlerInterface $handler)

Add a handler to the chain
Parameters
  • \Joomla\Authentication\Password\HandlerInterface $handler The password handler to add
Returns
  • void
Since
  • 4.0.0
Show source code of this method: addHandler Source Code

public bool
(string $hash)

Check if the password requires rehashing
Parameters
  • string $hash The password hash to check
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: checkIfRehashNeeded Source Code

public void
(mixed $plaintext, array $options = [])

Generate a hash for a plaintext password
Parameters
  • string $pla intext The plaintext password to validate
  • array $options Options for the hashing operation
Returns
  • void
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: hashPassword Source Code

public static bool
()

Check that the password handler is supported in this environment
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: isSupported Source Code

public bool
(mixed $plaintext, mixed $hashed)

Validate a password
Parameters
  • string $pla intext The plain text password to validate
  • string $hashed The password hash to validate against
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: validatePassword Source Code

Properties Summary

private \Joomla\Authentication\Password\HandlerInterface[]
$handlers
The password handlers in use by this chain.
Since
  • 4.0.0

Tags Summary

Since
4.0.0