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 = 40
Properties
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
MIN_BYTES
protected
mixed
MIN_BYTES
= 40
Properties
$b64 read-only
public
string
$b64
$binary read-only
public
string
$binary
$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
selffromHashSignedJwt()
public
static fromHashSignedJwt(string $jwt) : self
Parameters
- $jwt : string
Return values
selfgetSigningIdentifier()
Returns a public identifier of the secret.
public
getSigningIdentifier() : SecretIdentifier
Return values
SecretIdentifiergetSigningSecret()
Returns secret used for signing messages.
public
getSigningSecret() : string
Return values
stringtoHashSignedJwt()
public
toHashSignedJwt() : string