class FakePhpassHashedPassword in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php \Drupal\Tests\Core\Password\FakePhpassHashedPassword
A fake class for tests.
Hierarchy
- class \Drupal\Core\Password\PhpassHashedPassword implements PasswordInterface
- class \Drupal\Tests\Core\Password\FakePhpassHashedPassword
Expanded class hierarchy of FakePhpassHashedPassword
File
- core/
tests/ Drupal/ Tests/ Core/ Password/ PasswordHashingTest.php, line 178 - Contains \Drupal\Tests\Core\Password\PasswordHashingTest.
Namespace
Drupal\Tests\Core\PasswordView source
class FakePhpassHashedPassword extends PhpassHashedPassword {
function __construct() {
// Noop.
}
// Expose this method as public for tests.
public function enforceLog2Boundaries($count_log2) {
return parent::enforceLog2Boundaries($count_log2);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FakePhpassHashedPassword:: |
public | function |
Ensures that $count_log2 is within set bounds. Overrides PhpassHashedPassword:: |
|
FakePhpassHashedPassword:: |
function |
Constructs a new password hashing instance. Overrides PhpassHashedPassword:: |
||
PasswordInterface:: |
constant | Maximum password length. | ||
PhpassHashedPassword:: |
protected | property | Specifies the number of times the hashing function will be applied when generating new password hashes. The number of times is calculated by raising 2 to the power of the given value. | |
PhpassHashedPassword:: |
static | property | Returns a string for mapping an int to the corresponding base 64 character. | |
PhpassHashedPassword:: |
protected | function | Encodes bytes into printable base 64 using the *nix standard from crypt(). | |
PhpassHashedPassword:: |
public | function |
Check whether a plain text password matches a hashed password. Overrides PasswordInterface:: |
|
PhpassHashedPassword:: |
protected | function | Hash a password using a secure stretched hash. | |
PhpassHashedPassword:: |
protected | function | Generates a random base 64-encoded salt prefixed with hash settings. | |
PhpassHashedPassword:: |
public | function | Parses the log2 iteration count from a stored hash or setting string. | |
PhpassHashedPassword:: |
public | function |
Hash a password using a secure hash. Overrides PasswordInterface:: |
|
PhpassHashedPassword:: |
constant | The expected (and maximum) number of characters in a hashed password. | ||
PhpassHashedPassword:: |
constant | The maximum allowed log2 number of iterations for password stretching. | ||
PhpassHashedPassword:: |
constant | The minimum allowed log2 number of iterations for password stretching. | ||
PhpassHashedPassword:: |
public | function |
Check whether a hashed password needs to be replaced with a new hash. Overrides PasswordInterface:: |