|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for ilBcryptPhpPasswordEncoder:
Collaboration diagram for ilBcryptPhpPasswordEncoder:Public Member Functions | ||||||||||
| __construct (array $config=array()) | ||||||||||
| benchmarkCost ($time_target=0.05) | ||||||||||
| getName () | ||||||||||
| isSupportedByRuntime () | ||||||||||
{{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
| ||||||||||
| getCosts () | ||||||||||
| setCosts ($costs) | ||||||||||
| encodePassword ($raw, $salt) | ||||||||||
{Encodes the raw password.
| ||||||||||
| isPasswordValid ($encoded, $raw, $salt) | ||||||||||
{Checks a raw password against an encoded password.The raw password has to be injected into the encoder instance before.
| ||||||||||
| requiresReencoding ($encoded) | ||||||||||
{{Returns whether or not the a encoded password needs to be re-encoded.
| ||||||||||
Public Member Functions inherited from ilBasePasswordEncoder | ||||||||||
| isSupportedByRuntime () | ||||||||||
{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
| ||||||||||
| requiresSalt () | ||||||||||
{Returns whether or not the encoder requires a salt.
| ||||||||||
| requiresReencoding ($encoded) | ||||||||||
{Returns whether or not the a encoded password needs to be re-encoded.
| ||||||||||
| encodePassword ($raw, $salt) | ||||||||||
| Encodes the raw password. More... | ||||||||||
| isPasswordValid ($encoded, $raw, $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 ($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 ($known_string, $user_string) | |
| Compares two passwords. More... | |
| isPasswordTooLong ($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() | ) |
| array | $config |
| ilPasswordException |
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 22 of file class.ilBcryptPhpPasswordEncoder.php.
References $config, $key, benchmarkCost(), init(), and setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoder::benchmarkCost | ( | $time_target = 0.05 | ) |
| float | $time_target |
Definition at line 54 of file class.ilBcryptPhpPasswordEncoder.php.
References $end.
Referenced by __construct(), and ilBcryptPhpPasswordEncoderTest\testCostsCanBeDeterminedDynamically().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::encodePassword | ( | $raw, | |
| $salt | |||
| ) |
{Encodes the raw password.
| string | $raw | The password to encode |
| string | $salt | The salt |
| ilPasswordException |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
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 88 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 72 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 | ( | $encoded, | |
| $raw, | |||
| $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 |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 128 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by ilBcryptPhpPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), and ilBcryptPhpPasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoder::isSupportedByRuntime | ( | ) |
{{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
Reimplemented from ilBasePasswordEncoder.
Definition at line 80 of file class.ilBcryptPhpPasswordEncoder.php.
| ilBcryptPhpPasswordEncoder::requiresReencoding | ( | $encoded | ) |
{{Returns whether or not the a encoded password needs to be re-encoded.
| $encoded | string |
Reimplemented from ilBasePasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 136 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 | ( | $costs | ) |
| string | $costs |
| ilPasswordException |
Definition at line 97 of file class.ilBcryptPhpPasswordEncoder.php.
References $costs, and sprintf.
Referenced by __construct(), ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), ilBcryptPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPhpPasswordEncoderTest\testCostsCanBeSetInRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetAboveRange(), ilBcryptPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPhpPasswordEncoderTest\testCostsCannotBeSetBelowRange(), ilBcryptPasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), ilBcryptPhpPasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), ilBcryptPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), ilBcryptPhpPasswordEncoderTest\testPasswordShouldBeCorrectlyEncodedAndVerified(), ilBcryptPasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength(), ilBcryptPhpPasswordEncoderTest\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(), and setCosts().