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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
authenticatingAPasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword ( )
authenticatingAnUnsupportedTokenThrowsAnException ( )
authenticationAddsAnAccountHoldingTheConfiguredRoles ( )
authenticationFailsWithWrongCredentialsInAPasswordToken ( )
authenticationIsSkippedIfNoCredentialsInAPasswordToken ( )
canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet ( )
getTokenClassNameReturnsCorrectClassNames ( )
setUp ( )

Method Details

authenticatingAPasswordTokenChecksIfTheGivenClearTextPasswordMatchesThePersistedHashedPassword() public méthode

authenticatingAnUnsupportedTokenThrowsAnException() public méthode

authenticationAddsAnAccountHoldingTheConfiguredRoles() public méthode

authenticationFailsWithWrongCredentialsInAPasswordToken() public méthode

authenticationIsSkippedIfNoCredentialsInAPasswordToken() public méthode

canAuthenticateReturnsTrueOnlyForAnTokenThatHasTheCorrectProviderNameSet() public méthode

getTokenClassNameReturnsCorrectClassNames() public méthode

setUp() public méthode

public setUp ( )

Property Details

$mockFileBasedSimpleKeyService protected_oe property

protected FileBasedSimpleKeyService,Neos\Flow\Security\Cryptography|PHPUnit_Framework_MockObject_MockObject $mockFileBasedSimpleKeyService
Résultat Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService | PHPUnit_Framework_MockObject_MockObject

$mockHashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography|PHPUnit_Framework_MockObject_MockObject $mockHashService
Résultat Neos\Flow\Security\Cryptography\HashService | PHPUnit_Framework_MockObject_MockObject

$mockPolicyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy|PHPUnit_Framework_MockObject_MockObject $mockPolicyService
Résultat Neos\Flow\Security\Policy\PolicyService | PHPUnit_Framework_MockObject_MockObject

$mockRole protected_oe property

protected Role,Neos\Flow\Security\Policy|PHPUnit_Framework_MockObject_MockObject $mockRole
Résultat Neos\Flow\Security\Policy\Role | PHPUnit_Framework_MockObject_MockObject

$mockToken protected_oe property

protected PasswordToken,Neos\Flow\Security\Authentication\Token|PHPUnit_Framework_MockObject_MockObject $mockToken
Résultat Neos\Flow\Security\Authentication\Token\PasswordToken | PHPUnit_Framework_MockObject_MockObject

$testKeyClearText protected_oe property

protected string $testKeyClearText
Résultat string

$testKeyHashed protected_oe property

protected string $testKeyHashed
Résultat string