ILIAS
Release_5_0_x_branch Revision 61816
|
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. |
Protected Attributes | |
$test_directory |
Private Member Functions | |
isVsfStreamInstalled () | |
skipIfPhpVersionIsNotSupported () | |
skipIfvfsStreamNotSupported () |
Definition at line 11 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 145 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 46 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testClientSaltIsGeneratedAndStoredOnEncoderSelection(), testExceptionIsRaisedIfAGeneratedClientSaltCouldNotBeStoredOnEncoderSelection(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
|
private |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
Referenced by setUp(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
vfsStreamDirectory | $test_directory |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
|
protected |
Setup.
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), and setTestDirectory().
|
private |
Definition at line 300 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
|
private |
Definition at line 311 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled().
Referenced by testClientSaltIsGeneratedAndStoredOnEncoderSelection(), testExceptionIsRaisedIfAGeneratedClientSaltCouldNotBeStoredOnEncoderSelection(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 278 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 266 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedAndStoredOnEncoderSelection | ( | ) |
Definition at line 234 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 109 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getCosts(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 137 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 119 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 128 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 333 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfAGeneratedClientSaltCouldNotBeStoredOnEncoderSelection | ( | ) |
Definition at line 211 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 189 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 200 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 171 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 322 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 84 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 252 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ) |
Definition at line 345 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 158 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 180 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
|
protected |
Definition at line 41 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 31 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 21 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 36 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 16 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 26 of file ilBcryptPasswordEncoderTest.php.