ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Data Fields | |
const | VALID_COSTS = '08' |
const | PASSWORD = 'password' |
const | WRONG_PASSWORD = 'wrong_password' |
const | CLIENT_SALT = 'homer!12345_/' |
const | PASSWORD_SALT = 'salt' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
Protected Attributes | |
$test_directory | |
Private Member Functions | |
isVsfStreamInstalled () | |
skipIfPhpVersionIsNotSupported () | |
skipIfvfsStreamNotSupported () | |
Definition at line 11 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 46 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
|
private |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
Referenced by setUp(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
vfsStreamDirectory | $test_directory |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
|
protected |
Setup.
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), and setTestDirectory().
|
private |
Definition at line 259 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
|
private |
Definition at line 270 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled().
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 237 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 225 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 109 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getCosts(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 137 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 119 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 128 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 292 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 189 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 200 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 171 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 281 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 211 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ) |
Definition at line 304 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 158 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 180 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
|
protected |
Definition at line 41 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 31 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 21 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 36 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 16 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 26 of file ilBcryptPasswordEncoderTest.php.