|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ilBcryptPasswordEncoderTest:
Collaboration diagram for ilBcryptPasswordEncoderTest:Static Public Member Functions | |
| static | costsProvider () |
Private Member Functions | |
| isVsfStreamInstalled () | |
| skipIfvfsStreamNotSupported () | |
| getInstanceWithConfiguredDataDirectory () | |
Private Attributes | |
| const string | VALID_COSTS = '08' |
| const string | PASSWORD = 'password' |
| const string | WRONG_PASSWORD = 'wrong_password' |
| const string | CLIENT_SALT = 'homer!12345_/' |
| const string | PASSWORD_SALT = 'salt' |
| vfs vfsStreamDirectory | $testDirectory |
| string | $testDirectoryUrl |
Definition at line 26 of file ilBcryptPasswordEncoderTest.php.
|
static |
Definition at line 76 of file ilBcryptPasswordEncoderTest.php.
References $data.
|
private |
Definition at line 86 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 37 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
| ilBcryptPasswordEncoderTest::getTestDirectoryUrl | ( | ) |
Definition at line 47 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
|
private |
Definition at line 57 of file ilBcryptPasswordEncoderTest.php.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
Definition at line 42 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
Definition at line 52 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by skipIfvfsStreamNotSupported().
Here is the caller graph for this function:
|
private |
Definition at line 62 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 263 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 252 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isBackwardCompatibilityEnabled(), and ilBcryptPasswordEncoder\setBackwardCompatibility().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 232 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getClientSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 122 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | string | $costs, |
| ilBcryptPasswordEncoder | $encoder | ||
| ) |
Definition at line 147 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 131 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 138 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 188 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 182 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 284 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 199 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 210 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), ilBcryptPasswordEncoder\setClientSalt(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 165 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
Definition at line 242 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 93 of file ilBcryptPasswordEncoderTest.php.
References skipIfvfsStreamNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 221 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getClientSalt(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 194 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 296 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 | ) |
Definition at line 153 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 174 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 34 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
private |
Definition at line 35 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
|
private |
Definition at line 31 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 29 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 32 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 28 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 30 of file ilBcryptPasswordEncoderTest.php.