|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilBcryptPhpPasswordEncoder:
Collaboration diagram for ilBcryptPhpPasswordEncoder:Public Member Functions | |
| __construct (array $config=[]) | |
| benchmarkCost (float $time_target=0.05) | |
| getName () | |
| isSupportedByRuntime () | |
| @inheritDoc More... | |
| getCosts () | |
| setCosts (string $costs) | |
| encodePassword (string $raw, string $salt) | |
| @inheritDoc More... | |
| isPasswordValid (string $encoded, string $raw, string $salt) | |
| @inheritDoc More... | |
| requiresReencoding (string $encoded) | |
| @inheritDoc More... | |
Public Member Functions inherited from ilBasePasswordEncoder | |
| isSupportedByRuntime () | |
| @inheritDoc More... | |
| requiresSalt () | |
| @inheritDoc More... | |
| requiresReencoding (string $encoded) | |
| @inheritDoc 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 or not the encoder requires a salt. More... | |
| requiresReencoding (string $encoded) | |
| Returns whether or not the a encoded password needs to be re-encoded. More... | |
| isSupportedByRuntime () | |
| Returns whether or not 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) | |
| 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 |
Reimplemented in ilBcryptPasswordEncoder.
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 | ||
| ) |
@inheritDoc
| ilPasswordException |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 113 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 89 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 | ( | ) |
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 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 | ||
| ) |
@inheritDoc
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 127 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::isSupportedByRuntime | ( | ) |
@inheritDoc
Reimplemented from ilBasePasswordEncoder.
Definition at line 81 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::requiresReencoding | ( | string | $encoded | ) |
@inheritDoc
Reimplemented from ilBasePasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
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.
References $costs.
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 caller graph for this function:
|
protected |
Definition at line 16 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by getCosts(), and setCosts().