Cheetah
Public Member Functions | Protected Member Functions | List of all members
OAuth2\Encryption\Jwt Class Reference
Inheritance diagram for OAuth2\Encryption\Jwt:
OAuth2\Encryption\EncryptionInterface

Public Member Functions

 encode ($payload, $key, $algo='HS256')
 
 decode ($jwt, $key=null, $allowedAlgorithms=true)
 
 urlSafeB64Encode ($data)
 
 urlSafeB64Decode ($b64)
 

Protected Member Functions

 generateJwtHeader ($payload, $algorithm)
 
 hash_equals ($a, $b)
 

Detailed Description

F21

Definition at line 9 of file Jwt.php.

Member Function Documentation

◆ decode()

OAuth2\Encryption\Jwt::decode (   $jwt,
  $key = null,
  $allowedAlgorithms = true 
)

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 28 of file Jwt.php.

◆ encode()

OAuth2\Encryption\Jwt::encode (   $payload,
  $key,
  $algo = 'HS256' 
)

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 11 of file Jwt.php.

◆ generateJwtHeader()

OAuth2\Encryption\Jwt::generateJwtHeader (   $payload,
  $algorithm 
)
protected

Override to create a custom header

Definition at line 153 of file Jwt.php.

◆ hash_equals()

OAuth2\Encryption\Jwt::hash_equals (   $a,
  $b 
)
protected

Definition at line 161 of file Jwt.php.

◆ urlSafeB64Decode()

OAuth2\Encryption\Jwt::urlSafeB64Decode (   $b64)

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 141 of file Jwt.php.

◆ urlSafeB64Encode()

OAuth2\Encryption\Jwt::urlSafeB64Encode (   $data)

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 131 of file Jwt.php.


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