LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
Jwt Class Reference

Class to represent an HTTP message request. More...

Public Member Functions

 __construct ()
 Class constructor.
 

Static Public Member Functions

static setJwtClient ($jwtClient=null)
 Set the JWT client to use for handling JWTs.
 
static getJwtClient ()
 Get the JWT client to use for handling JWTs.
 

Static Public Attributes

static $life = 60
 Life (in seconds) of an issued JWT (default is 1 minute).
 
static $leeway = 180
 Leeway (in seconds) to allow when checking timestamps (default is 3 minutes).
 
static $allowJkuHeader = false
 Allow use of jku header in JWT.
 

Detailed Description

Class to represent an HTTP message request.

Author
Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Definition at line 14 of file Jwt.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Class constructor.

Definition at line 48 of file Jwt.php.

Member Function Documentation

◆ getJwtClient()

static getJwtClient ( )
static

Get the JWT client to use for handling JWTs.

If one is not set, a default client is created.

Returns
ClientInterface|null The JWT client

Definition at line 69 of file Jwt.php.

References Util\logDebug().

◆ setJwtClient()

static setJwtClient (   $jwtClient = null)
static

Set the JWT client to use for handling JWTs.

Parameters
ClientInterface | null$jwtClient

Definition at line 58 of file Jwt.php.

References Util\logDebug().

Field Documentation

◆ $allowJkuHeader

bool $allowJkuHeader = false
static

Allow use of jku header in JWT.

Definition at line 36 of file Jwt.php.

◆ $leeway

int $leeway = 180
static

Leeway (in seconds) to allow when checking timestamps (default is 3 minutes).

Definition at line 29 of file Jwt.php.

◆ $life

int $life = 60
static

Life (in seconds) of an issued JWT (default is 1 minute).

Definition at line 22 of file Jwt.php.


The documentation for this class was generated from the following file: