‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest:

Public Member Functions

 generateHmacReturnsHashStringIfStringIsGiven ()
 
 generateHmacReturnsHashStringWhichContainsSomeSalt ()
 
 generateHmacReturnsDifferentHashStringsForDifferentInputStrings ()
 
 generatedHmacCanBeValidatedAgain ()
 
 generatedHmacWillNotBeValidatedIfHashHasBeenChanged ()
 
 appendHmacAppendsHmacToGivenString ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ()
 
 validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ()
 
 validateAndStripHmacReturnsTheStringWithoutHmac ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

TYPO3 CMS Extbase Security Cryptography HashService $hashService
 

Detailed Description

Test case

Definition at line 26 of file HashServiceTest.php.

Member Function Documentation

◆ appendHmacAppendsHmacToGivenString()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::appendHmacAppendsHmacToGivenString ( )
Test:

Definition at line 90 of file HashServiceTest.php.

◆ generatedHmacCanBeValidatedAgain()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::generatedHmacCanBeValidatedAgain ( )
Test:

Definition at line 70 of file HashServiceTest.php.

◆ generatedHmacWillNotBeValidatedIfHashHasBeenChanged()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::generatedHmacWillNotBeValidatedIfHashHasBeenChanged ( )
Test:

Definition at line 80 of file HashServiceTest.php.

◆ generateHmacReturnsDifferentHashStringsForDifferentInputStrings()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::generateHmacReturnsDifferentHashStringsForDifferentInputStrings ( )
Test:

Definition at line 60 of file HashServiceTest.php.

◆ generateHmacReturnsHashStringIfStringIsGiven()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::generateHmacReturnsHashStringIfStringIsGiven ( )
Test:

Definition at line 42 of file HashServiceTest.php.

◆ generateHmacReturnsHashStringWhichContainsSomeSalt()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::generateHmacReturnsHashStringWhichContainsSomeSalt ( )
Test:

Definition at line 51 of file HashServiceTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::setUp ( )
protected

Definition at line 32 of file HashServiceTest.php.

References $GLOBALS.

◆ validateAndStripHmacReturnsTheStringWithoutHmac()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::validateAndStripHmacReturnsTheStringWithoutHmac ( )
Test:

Definition at line 130 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ( )
Test:

Definition at line 110 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ( )
Test:

Definition at line 100 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid()

TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ( )
Test:

Definition at line 120 of file HashServiceTest.php.

Member Data Documentation

◆ $hashService

TYPO3 CMS Extbase Security Cryptography HashService TYPO3\CMS\Extbase\Tests\Unit\Security\Cryptography\HashServiceTest::$hashService
protected

Definition at line 30 of file HashServiceTest.php.