ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | ||||||||||
__construct (array $config=array()) | ||||||||||
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.
| ||||||||||
getName () | ||||||||||
{Returns a unique name/id of the concrete password encoder.
| ||||||||||
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.
| ||||||||||
Additional Inherited Members | |
Data Fields inherited from ilBasePasswordEncoder | |
const | MAX_PASSWORD_LENGTH = 4096 |
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... | |
Definition at line 14 of file class.ilMd5PasswordEncoder.php.
ilMd5PasswordEncoder::encodePassword | ( | $raw, | |
$salt | |||
) |
{Encodes the raw password.
string | $raw | The password to encode |
string | $salt | The salt |
ilPasswordException |
Implements ilPasswordEncoder.
Definition at line 27 of file class.ilMd5PasswordEncoder.php.
References ilBasePasswordEncoder\isPasswordTooLong().
Referenced by isPasswordValid(), ilMd5PasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), and ilMd5PasswordEncoderTest\testPasswordShouldBeCorrectlyEncoded().
ilMd5PasswordEncoder::getName | ( | ) |
{Returns a unique name/id of the concrete password encoder.
Implements ilPasswordEncoder.
Definition at line 49 of file class.ilMd5PasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testNameShouldBeMd5().
ilMd5PasswordEncoder::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.
Definition at line 41 of file class.ilMd5PasswordEncoder.php.
References ilBasePasswordEncoder\comparePasswords(), encodePassword(), and ilBasePasswordEncoder\isPasswordTooLong().
Referenced by ilMd5PasswordEncoderTest\testPasswordCanBeVerified(), and ilMd5PasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength().