|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilBcryptPhpPasswordEncoder:
Collaboration diagram for ilBcryptPhpPasswordEncoder:Public Member Functions | |
| __construct (array $config=[]) | |
| benchmarkCost (float $time_target=0.05) | |
| getName () | |
| Returns a unique name/id of the concrete password encoder. More... | |
| getCosts () | |
| setCosts (string $costs) | |
| encodePassword (string $raw, string $salt) | |
| Encodes the raw password. More... | |
| isPasswordValid (string $encoded, string $raw, string $salt) | |
| Checks a raw password against an encoded password. More... | |
| requiresReencoding (string $encoded) | |
| Returns whether the encoded password needs to be re-encoded. More... | |
Public Member Functions inherited from ilBasePasswordEncoder | |
| isSupportedByRuntime () | |
| Returns whether the encoder is supported by the runtime (PHP, HHVM, ...) More... | |
| requiresSalt () | |
| Returns whether the encoder requires a salt. More... | |
| requiresReencoding (string $encoded) | |
| Returns whether the encoded password needs to be re-encoded. More... | |
| encodePassword (string $raw, string $salt) | |
| Encodes the raw password. More... | |
| isPasswordValid (string $encoded, string $raw, string $salt) | |
| Checks a raw password against an encoded password. More... | |
| getName () | |
| Returns a unique name/id of the concrete password encoder. More... | |
| requiresSalt () | |
| Returns whether the encoder requires a salt. More... | |
| requiresReencoding (string $encoded) | |
| Returns whether the encoded password needs to be re-encoded. More... | |
| isSupportedByRuntime () | |
| Returns whether the encoder is supported by the runtime (PHP, HHVM, ...) More... | |
Protected Member Functions | |
| init () | |
Protected Member Functions inherited from ilBasePasswordEncoder | |
| comparePasswords (string $knownString, string $userString) | |
| Compares two passwords. More... | |
| isPasswordTooLong (string $password) | |
Protected Attributes | |
| string | $costs = '08' |
Definition at line 26 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::__construct | ( | array | $config = [] | ) |
| array<string,mixed> | $config |
| ilPasswordException |
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 34 of file class.ilBcryptPhpPasswordEncoder.php.
References $config, ILIAS\LTI\ToolProvider\$key, benchmarkCost(), init(), and setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoder::benchmarkCost | ( | float | $time_target = 0.05 | ) |
| ilPasswordException |
Definition at line 58 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by __construct(), and ilBcryptPhpPasswordEncoderTest\testCostsCanBeDeterminedDynamically().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::encodePassword | ( | string | $raw, |
| string | $salt | ||
| ) |
Encodes the raw password.
| string | $raw | The password to encode |
| string | $salt | The salt |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 94 of file class.ilBcryptPhpPasswordEncoder.php.
References getCosts(), and ilBasePasswordEncoder\isPasswordTooLong().
Referenced by ilBcryptPhpPasswordEncoderTest\testReencodingIsDetectedWhenNecessary().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::getCosts | ( | ) |
Definition at line 78 of file class.ilBcryptPhpPasswordEncoder.php.
References $costs.
Referenced by ilBcryptPasswordEncoder\encode(), encodePassword(), requiresReencoding(), ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), and ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::getName | ( | ) |
Returns a unique name/id of the concrete password encoder.
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 73 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by ilBcryptPhpPasswordEncoderTest\testNameShouldBeBcryptPhp().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 50 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by __construct().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::isPasswordValid | ( | string | $encoded, |
| string | $raw, | ||
| string | $salt | ||
| ) |
Checks a raw password against an encoded password.
The raw password has to be injected into the encoder instance before.
| string | $encoded | An encoded password |
| string | $raw | A raw password |
| string | $salt | The salt, may be empty |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 105 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::requiresReencoding | ( | string | $encoded | ) |
Returns whether the encoded password needs to be re-encoded.
Reimplemented from ilBasePasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 110 of file class.ilBcryptPhpPasswordEncoder.php.
References getCosts().
Referenced by ilBcryptPhpPasswordEncoderTest\testReencodingIsDetectedWhenNecessary().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::setCosts | ( | string | $costs | ) |
Definition at line 83 of file class.ilBcryptPhpPasswordEncoder.php.
References $costs, and ILIAS\Repository\int().
Referenced by __construct(), ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPasswordEncoderTest\testExceptionIsRaisedIfSaltIsMissingIsOnEncoding(), ilBcryptPasswordEncoderTest\testExceptionIsRaisedIfSaltIsMissingIsOnVerification(), and ilBcryptPhpPasswordEncoderTest\testReencodingIsDetectedWhenNecessary().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 28 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by getCosts(), and setCosts().