NotBeforeChecker
in package
implements
ClaimChecker, HeaderChecker
FinalYes
This class is a claim checker.
When the "nbf" is present, it will compare the value with the current timestamp.
Table of Contents
Interfaces
Constants
- NAME = 'nbf'
Properties
- $allowedTimeDrift : int
- $protectedHeaderOnly : bool
Methods
- __construct() : mixed
- checkClaim() : void
- When the token has the applicable claim, the value is checked.
- checkHeader() : void
- This method is called when the header parameter is present.
- protectedHeaderOnly() : bool
- When true, the header parameter to be checked MUST be set in the protected header of the token.
- supportedClaim() : string
- The method returns the claim to be checked.
- supportedHeader() : string
- The method returns the header parameter to be checked.
Constants
NAME
private
mixed
NAME
= 'nbf'
Properties
$allowedTimeDrift
private
int
$allowedTimeDrift
$protectedHeaderOnly
private
bool
$protectedHeaderOnly
Methods
__construct()
public
__construct([int $allowedTimeDrift = 0 ][, bool $protectedHeaderOnly = false ]) : mixed
Parameters
- $allowedTimeDrift : int = 0
- $protectedHeaderOnly : bool = false
checkClaim()
When the token has the applicable claim, the value is checked.
public
checkClaim(mixed $value) : void
Parameters
- $value : mixed
Tags
checkHeader()
This method is called when the header parameter is present.
public
checkHeader(mixed $value) : void
Parameters
- $value : mixed
Tags
protectedHeaderOnly()
When true, the header parameter to be checked MUST be set in the protected header of the token.
public
protectedHeaderOnly() : bool
Return values
boolsupportedClaim()
The method returns the claim to be checked.
public
supportedClaim() : string
Return values
stringsupportedHeader()
The method returns the header parameter to be checked.
public
supportedHeader() : string