PHP Class Neos\Flow\Tests\Unit\Security\Authentication\Provider\FileBasedSimpleKeyProviderTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mockFileBasedSimpleKeyService Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService | PHPUnit_Framework_MockObject_MockObject
$mockHashService Neos\Flow\Security\Cryptography\HashService | PHPUnit_Framework_MockObject_MockObject
$mockPolicyService Neos\Flow\Security\Policy\PolicyService | PHPUnit_Framework_MockObject_MockObject
$mockRole Neos\Flow\Security\Policy\Role | PHPUnit_Framework_MockObject_MockObject
$mockToken Neos\Flow\Security\Authentication\Token\PasswordToken | PHPUnit_Framework_MockObject_MockObject
$testKeyClearText string
$testKeyHashed string

Public Methods

Method Description
authenticatingAPasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword ( )
authenticatingAnUnsupportedTokenThrowsAnException ( )
authenticationAddsAnAccountHoldingTheConfiguredRoles ( )
authenticationFailsWithWrongCredentialsInAPasswordToken ( )
authenticationIsSkippedIfNoCredentialsInAPasswordToken ( )
canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet ( )
getTokenClassNameReturnsCorrectClassNames ( )
setUp ( )

Method Details

authenticatingAPasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword() public method

authenticatingAnUnsupportedTokenThrowsAnException() public method

authenticationAddsAnAccountHoldingTheConfiguredRoles() public method

authenticationFailsWithWrongCredentialsInAPasswordToken() public method

authenticationIsSkippedIfNoCredentialsInAPasswordToken() public method

canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet() public method

getTokenClassNameReturnsCorrectClassNames() public method

setUp() public method

public setUp ( )

Property Details

$mockFileBasedSimpleKeyService protected property

protected FileBasedSimpleKeyService,Neos\Flow\Security\Cryptography|PHPUnit_Framework_MockObject_MockObject $mockFileBasedSimpleKeyService
return Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService | PHPUnit_Framework_MockObject_MockObject

$mockHashService protected property

protected HashService,Neos\Flow\Security\Cryptography|PHPUnit_Framework_MockObject_MockObject $mockHashService
return Neos\Flow\Security\Cryptography\HashService | PHPUnit_Framework_MockObject_MockObject

$mockPolicyService protected property

protected PolicyService,Neos\Flow\Security\Policy|PHPUnit_Framework_MockObject_MockObject $mockPolicyService
return Neos\Flow\Security\Policy\PolicyService | PHPUnit_Framework_MockObject_MockObject

$mockRole protected property

protected Role,Neos\Flow\Security\Policy|PHPUnit_Framework_MockObject_MockObject $mockRole
return Neos\Flow\Security\Policy\Role | PHPUnit_Framework_MockObject_MockObject

$mockToken protected property

protected PasswordToken,Neos\Flow\Security\Authentication\Token|PHPUnit_Framework_MockObject_MockObject $mockToken
return Neos\Flow\Security\Authentication\Token\PasswordToken | PHPUnit_Framework_MockObject_MockObject

$testKeyClearText protected property

protected string $testKeyClearText
return string

$testKeyHashed protected property

protected string $testKeyHashed
return string