‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Security\JwtTrait Class Reference
Inheritance diagram for TYPO3\CMS\Core\Security\JwtTrait:
TYPO3\CMS\Core\Security\RequestToken TYPO3\CMS\Core\Session\UserSession TYPO3\CMS\Core\Tests\Unit\Session\UserSessionManagerTest TYPO3\CMS\Core\Tests\Unit\Session\UserSessionTest

Static Private Member Functions

static getDefaultSigningAlgorithm ()
 
static createSigningKeyFromEncryptionKey (string $pepper=self::class)
 
static createSigningSecret (SigningSecretInterface $secret, string $pepper=self::class)
 
static encodeHashSignedJwt (array $payload, Key $key, SecretIdentifier $identifier=null)
 
static decodeJwt (string $jwt, Key $key, bool $associative=false)
 
static decodeJwtHeader (string $jwt, string $property)
 

Detailed Description

Trait providing support for JWT using symmetric hash signing.

The benefit of using a trait in this particular case is, that defaults in self::class (used as a pepper during the singing process) are specific for that a particular implementation.

Definition at line 31 of file JwtTrait.php.

Member Function Documentation

◆ createSigningKeyFromEncryptionKey()

static TYPO3\CMS\Core\Security\JwtTrait::createSigningKeyFromEncryptionKey ( string  $pepper = self::class)
staticprivate

Definition at line 38 of file JwtTrait.php.

References $GLOBALS.

◆ createSigningSecret()

static TYPO3\CMS\Core\Security\JwtTrait::createSigningSecret ( SigningSecretInterface  $secret,
string  $pepper = self::class 
)
staticprivate

◆ decodeJwt()

static TYPO3\CMS\Core\Security\JwtTrait::decodeJwt ( string  $jwt,
Key  $key,
bool  $associative = false 
)
staticprivate

◆ decodeJwtHeader()

static TYPO3\CMS\Core\Security\JwtTrait::decodeJwtHeader ( string  $jwt,
string  $property 
)
staticprivate

Definition at line 69 of file JwtTrait.php.

◆ encodeHashSignedJwt()

static TYPO3\CMS\Core\Security\JwtTrait::encodeHashSignedJwt ( array  $payload,
Key  $key,
SecretIdentifier  $identifier = null 
)
staticprivate

◆ getDefaultSigningAlgorithm()

static TYPO3\CMS\Core\Security\JwtTrait::getDefaultSigningAlgorithm ( )
staticprivate

Definition at line 33 of file JwtTrait.php.