Nonce

class \TYPO3\CMS\Core\Security\Nonce

Implements
SigningSecretInterface
Uses
JwtTrait

Number used once.

..

Table of Contents

Interfaces

SigningSecretInterface
Provides the value that is used as secret in a cryptographic signing process.

Constants

MIN_BYTES  : mixed = 40

Properties

$b64  : string
$binary  : string
$time  : DateTimeImmutable

Methods

__construct()  : mixed
create()  : self
fromHashSignedJwt()  : self
getSigningIdentifier()  : SecretIdentifier
Returns a public identifier of the secret.
getSigningSecret()  : string
Returns secret used for signing messages.
toHashSignedJwt()  : string

Constants

Properties

$time read-only

public DateTimeImmutable $time

Methods

__construct()

public __construct(string $binary[, DateTimeImmutable|null $time = null ]) : mixed

Parameters

$binary : string
$time : DateTimeImmutable|null = null

create()

public static create([int $length = self::MIN_BYTES ]) : self

Parameters

$length : int = self::MIN_BYTES

Return values

self

fromHashSignedJwt()

public static fromHashSignedJwt(string $jwt) : self

Parameters

$jwt : string

Return values

self

getSigningSecret()

Returns secret used for signing messages.

public getSigningSecret() : string

Return values

string

toHashSignedJwt()

public toHashSignedJwt() : string

Return values

string
On this page