PropertyCollectionElementHmacDataValidator

class \TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\PropertyCollectionElementHmacDataValidator

Extends
CollectionBasedValidator

Table of Contents

Properties

$currentElement  : array
$sessionToken  : string
$validationDto  : ValidationDto

Methods

__construct()  : mixed
__invoke()  : void
Checks if the property collection element values matches to its hmac hash.
validatePropertyCollectionElementPropertyValueByHmacData()  : void
Throws an exception if value from a property collection property does not match its hmac hash or if there is no hmac hash available for the value.
buildHmacDataPath()  : string
Builds the path in which the hmac value is expected based on the property path.
getConfigurationService()  : ConfigurationService
getFormDefinitionValidationService()  : FormDefinitionValidationService

Properties

$currentElement

protected array $currentElement

$sessionToken

protected string $sessionToken

Methods

__construct()

public __construct(array $currentElement, string $sessionToken, ValidationDto $validationDto) : mixed

Parameters

$currentElement : array
$sessionToken : string
$validationDto : ValidationDto

__invoke()

Checks if the property collection element values matches to its hmac hash.

public __invoke(string $key, mixed $value) : void

Parameters

$key : string
$value : mixed

validatePropertyCollectionElementPropertyValueByHmacData()

Throws an exception if value from a property collection property does not match its hmac hash or if there is no hmac hash available for the value.

public validatePropertyCollectionElementPropertyValueByHmacData(array $currentElement, mixed $value, string $sessionToken, ValidationDto $dto) : void

Parameters

$currentElement : array
$value : mixed
$sessionToken : string
$dto : ValidationDto

Tags

throws
PropertyException

buildHmacDataPath()

Builds the path in which the hmac value is expected based on the property path.

protected buildHmacDataPath(string $propertyPath) : string

Parameters

$propertyPath : string

Return values

string
On this page