2 declare(strict_types = 1);
38 public function __construct(
string $authenticatedIdentifier =
null)
40 if ($authenticatedIdentifier ===
null) {
64 return GeneralUtility::makeInstance(HashService::class)
66 ->appendHmac($this->identifier .
'|');
74 return GeneralUtility::makeInstance(Random::class)->generateRandomHexString(40);
85 $identifier = GeneralUtility::makeInstance(HashService::class)
86 ->validateAndStripHmac($authenticatedIdentifier);
89 throw new BadRequestException(
'The HMAC of the form session could not be validated.', 1613300274);