‪TYPO3CMS  ‪main
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

HashService $hashService
 

Detailed Description

Definition at line 25 of file HashServiceTest.php.

Member Function Documentation

◆ appendHmacAppendsHmacToGivenString()

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

Definition at line 87 of file HashServiceTest.php.

◆ generatedHmacCanBeValidatedAgain()

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

Definition at line 67 of file HashServiceTest.php.

◆ generatedHmacWillNotBeValidatedIfHashHasBeenChanged()

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

Definition at line 77 of file HashServiceTest.php.

◆ generateHmacReturnsDifferentHashStringsForDifferentInputStrings()

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

Definition at line 57 of file HashServiceTest.php.

◆ generateHmacReturnsHashStringIfStringIsGiven()

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

Definition at line 39 of file HashServiceTest.php.

◆ generateHmacReturnsHashStringWhichContainsSomeSalt()

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

Definition at line 48 of file HashServiceTest.php.

◆ setUp()

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

Definition at line 29 of file HashServiceTest.php.

References $GLOBALS.

◆ validateAndStripHmacReturnsTheStringWithoutHmac()

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

Definition at line 127 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended()

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

Definition at line 107 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort()

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

Definition at line 97 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid()

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

Definition at line 117 of file HashServiceTest.php.

Member Data Documentation

◆ $hashService

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

Definition at line 27 of file HashServiceTest.php.