LTI Integration Library 5.1.4
PHP class library for building LTI integrations
 
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
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 void setJwtClient (?ClientInterface $jwtClient=null)
 Set the JWT client to use for handling JWTs.
 
static ClientInterface null getJwtClient ()
 Get the JWT client to use for handling JWTs.
 

Static Public Attributes

static int $life = 60
 Life (in seconds) of an issued JWT (default is 1 minute).
 
static int $leeway = 180
 Leeway (in seconds) to allow when checking timestamps (default is 3 minutes).
 
static bool $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

Member Function Documentation

◆ getJwtClient()

static ClientInterface null 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

◆ setJwtClient()

static void setJwtClient ( ?ClientInterface $jwtClient = null)
static

Set the JWT client to use for handling JWTs.

Parameters
ClientInterface | null$jwtClient

Member Data Documentation

◆ $allowJkuHeader

bool $allowJkuHeader = false
static

Allow use of jku header in JWT.

$allowJkuHeader

◆ $leeway

int $leeway = 180
static

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

$leeway

◆ $life

int $life = 60
static

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

$life