ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
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... | |
Definition at line 9 of file interface.ilPasswordEncoder.php.
ilPasswordEncoder::encodePassword | ( | $raw, | |
$salt | |||
) |
Encodes the raw password.
string | $raw | The password to encode |
string | $salt | The salt |
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::getName | ( | ) |
Returns a unique name/id of the concrete password encoder.
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::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 |
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::isSupportedByRuntime | ( | ) |
Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
Implemented in ilBcryptPhpPasswordEncoder, and ilBasePasswordEncoder.
ilPasswordEncoder::requiresReencoding | ( | $encoded | ) |
Returns whether or not the a encoded password needs to be re-encoded.
$encoded | string |
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilBasePasswordEncoder.
ilPasswordEncoder::requiresSalt | ( | ) |
Returns whether or not the encoder requires a salt.
Implemented in ilBcryptPasswordEncoder, and ilBasePasswordEncoder.