ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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... | |
![]() | |
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 () | |
![]() | |
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 | |
![]() | |
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().
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().
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().
ilBcryptPhpPasswordEncoder::getCosts | ( | ) |
Definition at line 89 of file class.ilBcryptPhpPasswordEncoder.php.
References $costs.
Referenced by ilBcryptPasswordEncoder\encode(), encodePassword(), requiresReencoding(), ilBcryptPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet(), and ilBcryptPhpPasswordEncoderTest\testCostsCanBeRetrievedWhenCostsAreSet().
ilBcryptPhpPasswordEncoder::getName | ( | ) |
Implements ilPasswordEncoder.
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 73 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by ilBcryptPhpPasswordEncoderTest\testNameShouldBeBcryptPhp().
|
protected |
Reimplemented in ilBcryptPasswordEncoder.
Definition at line 45 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by __construct().
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().
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().
|
protected |
Definition at line 16 of file class.ilBcryptPhpPasswordEncoder.php.
Referenced by getCosts(), and setCosts().