|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilBcryptPhpPasswordEncoder:
Collaboration diagram for ilBcryptPhpPasswordEncoder:Public Member Functions | |
| __construct (array $config=[]) | |
| benchmarkCost (float $time_target=0.05) | |
| getName () | |
| isSupportedByRuntime () | |
| getCosts () | |
| setCosts (string $costs) | |
| encodePassword (string $raw, string $salt) | |
| isPasswordValid (string $encoded, string $raw, string $salt) | |
| requiresReencoding (string $encoded) | |
Public Member Functions inherited from ilBasePasswordEncoder | |
| isSupportedByRuntime () | |
| requiresSalt () | |
| requiresReencoding (string $encoded) | |
Protected Member Functions | |
| init () | |
Protected Member Functions inherited from ilBasePasswordEncoder | |
| comparePasswords (string $knownString, string $userString) | |
| Compares two passwords. More... | |
| isPasswordTooLong (string $password) | |
| Checks if the password is too long. More... | |
Protected Attributes | |
| $costs = '08' | |
Additional Inherited Members | |
Data Fields inherited from ilBasePasswordEncoder | |
| const | MAX_PASSWORD_LENGTH = 4096 |
Definition at line 11 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::__construct | ( | array | $config = [] | ) |
| array | $config |
| ilPasswordException |
Definition at line 22 of file class.ilBcryptPhpPasswordEncoder.php.
References $config, benchmarkCost(), init(), and setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoder::benchmarkCost | ( | float | $time_target = 0.05 | ) |
| float | $time_target |
| ilPasswordException |
Definition at line 55 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 | ||
| ) |
| ilPasswordException |
Implements ilPasswordEncoder.
Definition at line 113 of file class.ilBcryptPhpPasswordEncoder.php.
References getCosts(), and ilBasePasswordEncoder\isPasswordTooLong().
Referenced by ilBcryptPhpPasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), ilBcryptPhpPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), and ilBcryptPhpPasswordEncoderTest\testReencodingIsDetectedWhenNecessary().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::getCosts | ( | ) |
Definition at line 89 of file class.ilBcryptPhpPasswordEncoder.php.
References $costs.
Referenced by ilBcryptPasswordEncoder\encode(), encodePassword(), requiresReencoding(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), and ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::getName | ( | ) |
Implements ilPasswordEncoder.
Definition at line 73 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by ilBcryptPhpPasswordEncoderTest\testNameShouldBeBcryptPhp().
Here is the caller graph for this function:
|
protected |
Definition at line 45 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by __construct().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::isPasswordValid | ( | string | $encoded, |
| string | $raw, | ||
| string | $salt | ||
| ) |
Implements ilPasswordEncoder.
Definition at line 127 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by ilBcryptPhpPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), and ilBcryptPhpPasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::isSupportedByRuntime | ( | ) |
Implements ilPasswordEncoder.
Definition at line 81 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::requiresReencoding | ( | string | $encoded | ) |
Implements ilPasswordEncoder.
Definition at line 135 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 | ) |
| string | $costs |
| ilPasswordException |
Definition at line 98 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by __construct(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPhpPasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), ilBcryptPasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), ilBcryptPhpPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), ilBcryptPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), ilBcryptPhpPasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength(), ilBcryptPasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength(), and ilBcryptPhpPasswordEncoderTest\testReencodingIsDetectedWhenNecessary().
Here is the caller graph for this function:
|
protected |
Definition at line 16 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by getCosts().