‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Security\Nonce Class Reference
Inheritance diagram for TYPO3\CMS\Core\Security\Nonce:
TYPO3\CMS\Core\Security\SigningSecretInterface

Public Member Functions

 __construct (public readonly string $binary, \DateTimeImmutable $time=null)
 
 getSigningIdentifier ()
 
 getSigningSecret ()
 
 toHashSignedJwt ()
 

Static Public Member Functions

static create (int $length=self::MIN_BYTES)
 
static fromHashSignedJwt (string $jwt)
 

Public Attributes

readonly string $b64
 
readonly DateTimeImmutable $time
 

Protected Attributes

const MIN_BYTES = 40
 

Detailed Description

Number used once...

Definition at line 28 of file Nonce.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Security\Nonce::__construct ( public readonly string  $binary,
\DateTimeImmutable  $time = null 
)

Member Function Documentation

◆ create()

◆ fromHashSignedJwt()

◆ getSigningIdentifier()

TYPO3\CMS\Core\Security\Nonce::getSigningIdentifier ( )

◆ getSigningSecret()

TYPO3\CMS\Core\Security\Nonce::getSigningSecret ( )

Returns secret used for signing messages.

Implements TYPO3\CMS\Core\Security\SigningSecretInterface.

Definition at line 77 of file Nonce.php.

◆ toHashSignedJwt()

TYPO3\CMS\Core\Security\Nonce::toHashSignedJwt ( )

Definition at line 82 of file Nonce.php.

References TYPO3\CMS\Core\Security\Nonce\$b64.

Member Data Documentation

◆ $b64

readonly string TYPO3\CMS\Core\Security\Nonce::$b64

Definition at line 34 of file Nonce.php.

Referenced by TYPO3\CMS\Core\Security\Nonce\toHashSignedJwt().

◆ $time

readonly DateTimeImmutable TYPO3\CMS\Core\Security\Nonce::$time

Definition at line 35 of file Nonce.php.

Referenced by TYPO3\CMS\Core\Security\Nonce\__construct().

◆ MIN_BYTES

const TYPO3\CMS\Core\Security\Nonce::MIN_BYTES = 40
protected

Definition at line 32 of file Nonce.php.