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

Public Member Functions

 __construct ()
 
 encode ($payload, $key, $alg='HS256', $keyId=null)
 
 decode ($jwt, $key=null, $allowedAlgorithms=null)
 
 urlSafeB64Encode ($data)
 
 urlSafeB64Decode ($b64)
 
- Public Member Functions inherited from OAuth2\Encryption\EncryptionInterface
 encode ($payload, $key, $algorithm=null)
 

Detailed Description

Bridge file to use the firebase/php-jwt package for JWT encoding and decoding.

Author
Francis Chuang franc.nosp@m.is.c.nosp@m.huang.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 9 of file FirebaseJwt.php.

Constructor & Destructor Documentation

◆ __construct()

OAuth2\Encryption\FirebaseJwt::__construct ( )

Definition at line 11 of file FirebaseJwt.php.

Member Function Documentation

◆ decode()

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

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 23 of file FirebaseJwt.php.

◆ encode()

OAuth2\Encryption\FirebaseJwt::encode (   $payload,
  $key,
  $alg = 'HS256',
  $keyId = null 
)

Definition at line 18 of file FirebaseJwt.php.

◆ urlSafeB64Decode()

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

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 43 of file FirebaseJwt.php.

◆ urlSafeB64Encode()

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

Implements OAuth2\Encryption\EncryptionInterface.

Definition at line 38 of file FirebaseJwt.php.


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