ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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.
Referenced by testBackwardCompatibility(), testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet(), testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled(), testExceptionIsRaisedIfSaltIsMissingIsOnEncoding(), testExceptionIsRaisedIfSaltIsMissingIsOnVerification(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), testInstanceCanBeCreatedAndInitializedWithClientSalt(), and testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw().
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().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
Definition at line 42 of file ilBcryptPasswordEncoderTest.php.
References $testDirectory.
Referenced by skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
Definition at line 52 of file ilBcryptPasswordEncoderTest.php.
References $testDirectoryUrl.
Referenced by skipIfvfsStreamNotSupported().
|
private |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), setTestDirectory(), and setTestDirectoryUrl().
Referenced by testBackwardCompatibility(), testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet(), testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled(), testExceptionIsRaisedIfSaltIsMissingIsOnEncoding(), testExceptionIsRaisedIfSaltIsMissingIsOnVerification(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), testInstanceCanBeCreated(), testInstanceCanBeCreatedAndInitializedWithClientSalt(), and testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 263 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 252 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 232 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 122 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | string | $costs, |
ilBcryptPasswordEncoder | $encoder | ||
) |
Definition at line 147 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 131 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 138 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 188 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 182 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
ilBcryptPasswordEncoderTest::testExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 284 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 199 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), null, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 210 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), null, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 165 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
Definition at line 242 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 93 of file ilBcryptPasswordEncoderTest.php.
References skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 221 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 194 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
ilBcryptPasswordEncoderTest::testNoExceptionIfPasswordsContainA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 296 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 153 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
Definition at line 174 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
|
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.