|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilBcryptPasswordEncoderTest:
Collaboration diagram for ilBcryptPasswordEncoderTest:Data Fields | |
| const | VALID_COSTS = '08' |
| const | PASSWORD = 'password' |
| const | WRONG_PASSWORD = 'wrong_password' |
| const | CLIENT_SALT = 'homer!12345_/' |
| const | PASSWORD_SALT = 'salt' |
Protected Attributes | |
| $testDirectory | |
| $testDirectoryUrl | |
Private Member Functions | |
| skipIfPhpVersionIsNotSupported () | |
| isVsfStreamInstalled () | |
| skipIfvfsStreamNotSupported () | |
| getInstanceWithConfiguredDataDirectory () | |
Definition at line 14 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 104 of file ilBcryptPasswordEncoderTest.php.
|
private |
| ilPasswordException |
Definition at line 118 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 40 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
| ilBcryptPasswordEncoderTest::getTestDirectoryUrl | ( | ) |
Definition at line 56 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by getInstanceWithConfiguredDataDirectory(), and testInstanceCanBeCreated().
Here is the caller graph for this function:
|
private |
Definition at line 82 of file ilBcryptPasswordEncoderTest.php.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
| vfs\vfsStreamDirectory | $testDirectory |
Definition at line 48 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
| string | $testDirectoryUrl |
Definition at line 64 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:
|
private |
Definition at line 72 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 90 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), setTestDirectory(), and setTestDirectoryUrl().
Referenced by testInstanceCanBeCreated().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
| ilPasswordException |
Definition at line 360 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), ilBcryptPasswordEncoder\setBackwardCompatibility(), and ilBcryptPasswordEncoder\setClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
| ilPasswordException |
Definition at line 346 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isBackwardCompatibilityEnabled(), and ilBcryptPasswordEncoder\setBackwardCompatibility().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
| ilPasswordException |
Definition at line 320 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 164 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | string | $costs, |
| ilBcryptPasswordEncoder | $encoder | ||
| ) |
@doesNotPerformAssertions @depends testInstanceCanBeCreated @dataProvider costsProvider
| string | $costs | |
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 202 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 177 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 188 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
Definition at line 261 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
Definition at line 252 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
| ilPasswordException |
Definition at line 383 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\setBackwardCompatibility(), and ilBcryptPasswordEncoder\setClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
| ilPasswordException |
Definition at line 278 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\setClientSalt(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
| ilPasswordException |
Definition at line 292 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), ilBcryptPasswordEncoder\setClientSalt(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 228 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
| ilPasswordException |
Definition at line 333 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
| ilPasswordException |
Definition at line 131 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl(), and skipIfvfsStreamNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
| ilPasswordException |
Definition at line 306 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getClientSalt(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
Definition at line 270 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
@doesNotPerformAssertions
| ilPasswordException |
Definition at line 398 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\setBackwardCompatibility(), ilBcryptPasswordEncoder\setClientSalt(), and ilBcryptPasswordEncoder\setIsSecurityFlawIgnored().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 213 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilBcryptPasswordEncoder | $encoder |
| ilPasswordException |
Definition at line 241 of file ilBcryptPasswordEncoderTest.php.
|
protected |
Definition at line 32 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 35 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
| const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 26 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 20 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 29 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 17 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 23 of file ilBcryptPasswordEncoderTest.php.