RequestToken uses JwtTrait
Table of Contents
Constants
- HEADER_NAME : mixed = 'X-TYPO3-RequestToken'
- PARAM_NAME : mixed = '__RequestToken'
Properties
Methods
- __construct() : mixed
- create() : self
- fromHashSignedJwt() : self
- getSigningSecretIdentifier() : SecretIdentifier|null
- toHashSignedJwt() : string
- withMergedParams() : self
- withParams() : self
Constants
HEADER_NAME
public
mixed
HEADER_NAME
= 'X-TYPO3-RequestToken'
PARAM_NAME
public
mixed
PARAM_NAME
= '__RequestToken'
Properties
$params read-only
public
array<int|string, mixed>
$params
$scope read-only
public
string
$scope
$time read-only
public
DateTimeImmutable
$time
Methods
__construct()
public
__construct(string $scope[, DateTimeImmutable|null $time = null ][, array $params = [] ]) : mixed
Parameters
- $scope : string
- $time : DateTimeImmutable|null = null
- $params : array = []
create()
public
static create(string $scope) : self
Parameters
- $scope : string
Return values
selffromHashSignedJwt()
public
static fromHashSignedJwt(string $jwt, SigningSecretInterface|SigningSecretResolver $secret) : self
Parameters
- $jwt : string
- $secret : SigningSecretInterface|SigningSecretResolver
Return values
selfgetSigningSecretIdentifier()
public
getSigningSecretIdentifier() : SecretIdentifier|null
Return values
SecretIdentifier|nulltoHashSignedJwt()
public
toHashSignedJwt(SigningSecretInterface $secret) : string
Parameters
- $secret : SigningSecretInterface
Return values
stringwithMergedParams()
public
withMergedParams(array $params) : self
Parameters
- $params : array
Return values
selfwithParams()
public
withParams(array $params) : self
Parameters
- $params : array