PHP 클래스 Neos\Flow\Tests\Unit\Security\Cryptography\HashServiceTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Neos\Cache\Frontend\StringFrontend
$hashService Neos\Flow\Security\Cryptography\HashService
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockSettings array

공개 메소드들

메소드 설명
appendHmacAppendsHmacToGivenString ( )
appendHmacThrowsExceptionIfNoStringGiven ( )
generateHmacReturnsDifferentHashStringsForDifferentInputStrings ( )
generateHmacReturnsHashStringIfStringIsGiven ( )
generateHmacReturnsHashStringWhichContainsSomeSalt ( )
generateHmacThrowsExceptionIfNoStringGiven ( )
generatedHashCanBeValidatedAgain ( )
generatedHashReturnsAHashOf40Characters ( )
generatedHashWillNotBeValidatedIfHashHasBeenChanged ( )
hashPasswordThrowsExceptionIfNoDefaultHashingStrategyIsConfigured ( )
hashPasswordThrowsExceptionIfTheGivenHashingStrategyIsNotConfigured ( )
hashPasswordWillIncludeStrategyIdentifierInHashedPassword ( )
hashPasswordWithoutStrategyIdentifierUsesConfiguredDefaultStrategy ( )
setUp ( ) : void Set up test dependencies
validateAndStripHmacReturnsTheStringWithoutHmac ( )
validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ( )
validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ( )
validateAndStripHmacThrowsExceptionIfNoStringGiven ( )
validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ( )
validatePasswordWillUseStrategyIdentifierFromHashedPassword ( )
validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy ( ) test

메소드 상세

appendHmacAppendsHmacToGivenString() 공개 메소드

appendHmacThrowsExceptionIfNoStringGiven() 공개 메소드

generateHmacReturnsDifferentHashStringsForDifferentInputStrings() 공개 메소드

generateHmacReturnsHashStringIfStringIsGiven() 공개 메소드

generateHmacReturnsHashStringWhichContainsSomeSalt() 공개 메소드

generateHmacThrowsExceptionIfNoStringGiven() 공개 메소드

generatedHashCanBeValidatedAgain() 공개 메소드

generatedHashReturnsAHashOf40Characters() 공개 메소드

generatedHashWillNotBeValidatedIfHashHasBeenChanged() 공개 메소드

hashPasswordThrowsExceptionIfNoDefaultHashingStrategyIsConfigured() 공개 메소드

hashPasswordThrowsExceptionIfTheGivenHashingStrategyIsNotConfigured() 공개 메소드

hashPasswordWillIncludeStrategyIdentifierInHashedPassword() 공개 메소드

hashPasswordWithoutStrategyIdentifierUsesConfiguredDefaultStrategy() 공개 메소드

setUp() 공개 메소드

Set up test dependencies
public setUp ( ) : void
리턴 void

validateAndStripHmacReturnsTheStringWithoutHmac() 공개 메소드

validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended() 공개 메소드

validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort() 공개 메소드

validateAndStripHmacThrowsExceptionIfNoStringGiven() 공개 메소드

validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid() 공개 메소드

validatePasswordWillUseStrategyIdentifierFromHashedPassword() 공개 메소드

validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy() 공개 메소드

test

프로퍼티 상세

$cache 보호되어 있는 프로퍼티

protected StringFrontend,Neos\Cache\Frontend $cache
리턴 Neos\Cache\Frontend\StringFrontend

$hashService 보호되어 있는 프로퍼티

protected HashService,Neos\Flow\Security\Cryptography $hashService
리턴 Neos\Flow\Security\Cryptography\HashService

$mockObjectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockSettings 보호되어 있는 프로퍼티

protected array $mockSettings
리턴 array