NotValidYetException
extends RuntimeExceptionWithPayload
in package
Exception thrown when NotValidBeforeValidator determines that a token is not valid yet.
Table of Contents
Methods
- __construct() : mixed
- convert() : RuntimeExceptionWithPayload
- Converts a normal RuntimeException to one with a payload.
- getPayload() : object
- Gets the JWT payload value.
- getValidAfter() : DateTimeImmutable
- Gets the time at which the token becomes valid.
Methods
__construct()
public
__construct(object $payload, DateTimeInterface|int $validAfter) : mixed
Parameters
- $payload : object
-
Data that was provided for the payload section.
- $validAfter : DateTimeInterface|int
-
Time at which the token becomes valid.
convert()
Converts a normal RuntimeException to one with a payload.
public
static convert(object $payload, Throwable $previous) : RuntimeExceptionWithPayload
Parameters
- $payload : object
-
Data that was provided for the payload section.
- $previous : Throwable
-
Exception to convert.
Return values
RuntimeExceptionWithPayloadgetPayload()
Gets the JWT payload value.
public
getPayload() : object
Return values
objectgetValidAfter()
Gets the time at which the token becomes valid.
public
getValidAfter() : DateTimeImmutable