ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 | |
$test_directory_url | |
Private Member Functions | |
skipIfPhpVersionIsNotSupported () | |
getInstanceWithConfiguredDataDirectory () | |
Definition at line 14 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 108 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 120 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
Referenced by testBackwardCompatibility(), testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet(), testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw(), testExceptionIsRaisedIfSaltIsMissingIsOnEncoding(), testExceptionIsRaisedIfSaltIsMissingIsOnVerification(), testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::getTestDirectoryUrl | ( | ) |
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References $test_directory_url.
Referenced by getInstanceWithConfiguredDataDirectory(), and testInstanceCanBeCreated().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
vfs\vfsStreamDirectory | $test_directory |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | $test_directory_url | ) |
string | $test_directory_url |
Definition at line 78 of file ilBcryptPasswordEncoderTest.php.
References $test_directory_url.
Referenced by setUp().
|
protected |
Setup.
Definition at line 86 of file ilBcryptPasswordEncoderTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
|
private |
Definition at line 98 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 325 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfPhpVersionIsNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 313 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory().
ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 291 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and getTestDirectory().
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 161 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 191 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 171 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 181 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 239 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 231 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 359 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 255 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 267 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 212 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 347 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
Definition at line 302 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), getInstanceWithConfiguredDataDirectory(), and getTestDirectory().
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 132 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 279 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), getTestDirectory(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 247 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 199 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 222 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
|
protected |
Definition at line 44 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 49 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
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.