|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilBcryptPasswordEncoderTest:
Collaboration diagram for ilBcryptPasswordEncoderTest:Protected Attributes | |
| vfs vfsStreamDirectory | $testDirectory |
| string | $testDirectoryUrl |
Private Member Functions | |
| isVsfStreamInstalled () | |
| skipIfvfsStreamNotSupported () | |
| getInstanceWithConfiguredDataDirectory () | |
Private Attributes | |
| const | VALID_COSTS = '08' |
| const | PASSWORD = 'password' |
| const | WRONG_PASSWORD = 'wrong_password' |
| const | CLIENT_SALT = 'homer!12345_/' |
| const | PASSWORD_SALT = 'salt' |
Definition at line 28 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 87 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 97 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 48 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
| ilBcryptPasswordEncoderTest::getTestDirectoryUrl | ( | ) |
Definition at line 58 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by getInstanceWithConfiguredDataDirectory(), and testInstanceCanBeCreated().
Here is the caller graph for this function:
|
private |
Definition at line 68 of file ilBcryptPasswordEncoderTest.php.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
Definition at line 53 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
Definition at line 63 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:
|
private |
Definition at line 73 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 | ( | ) |
Definition at line 301 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), ilBcryptPasswordEncoder\setBackwardCompatibility(), and ilBcryptPasswordEncoder\setClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 290 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isBackwardCompatibilityEnabled(), and ilBcryptPasswordEncoder\setBackwardCompatibility().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 270 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilPasswordException |
Definition at line 136 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
| ilPasswordException |
Definition at line 170 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilPasswordException |
Definition at line 148 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilPasswordException |
Definition at line 158 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 224 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 216 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 322 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\setBackwardCompatibility(), and ilBcryptPasswordEncoder\setClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 237 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\setClientSalt(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 248 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
| ilPasswordException |
Definition at line 194 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
Definition at line 280 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 104 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl(), and skipIfvfsStreamNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 259 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
Definition at line 232 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
@doesNotPerformAssertions
| ilPasswordException |
Definition at line 337 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
| ilPasswordException |
Definition at line 179 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
| ilPasswordException |
Definition at line 206 of file ilBcryptPasswordEncoderTest.php.
|
protected |
Definition at line 45 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 46 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
|
private |
Definition at line 40 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 34 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 43 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 31 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 37 of file ilBcryptPasswordEncoderTest.php.