ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 Member Functions inherited from ilPasswordBaseTest | |
assertException ($exception_class) | |
Protected Attributes | |
$test_directory | |
Private Member Functions | |
skipIfPhpVersionIsNotSupported () | |
Definition at line 14 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 49 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
vfs\vfsStreamDirectory | $test_directory |
Definition at line 57 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
|
protected |
Setup.
Definition at line 65 of file ilBcryptPasswordEncoderTest.php.
References defined, and setTestDirectory().
|
private |
Definition at line 81 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 294 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 282 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 260 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory().
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 130 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 160 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 140 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 150 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 208 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 200 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 328 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 224 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 236 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 181 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 316 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
Definition at line 271 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getTestDirectory().
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 105 of file ilBcryptPasswordEncoderTest.php.
References array.
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 248 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 216 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 168 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 191 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
|
protected |
Definition at line 44 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 34 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 24 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 39 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 19 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 29 of file ilBcryptPasswordEncoderTest.php.