JsonWebTokenSecretProvider
in package
Class JsonWebTokenSecretProvider
Table of Contents
- SECRET_CONFIG_KEY = 'gm_configuration/REST_API_SECRET'
- Configuration key for JSON web token secret.
- SECRET_LENGTH = 64
- String length of JSON web token secret.
- $db : Connection
- __construct() : mixed
- JsonWebTokenParser constructor.
- generateNewSecret() : string
- getSecret() : string
- setSecret() : void
Constants
SECRET_CONFIG_KEY
Configuration key for JSON web token secret.
private
mixed
SECRET_CONFIG_KEY
= 'gm_configuration/REST_API_SECRET'
SECRET_LENGTH
String length of JSON web token secret.
private
mixed
SECRET_LENGTH
= 64
Properties
$db
private
Connection
$db
Methods
__construct()
JsonWebTokenParser constructor.
public
__construct(Connection $db) : mixed
Parameters
- $db : Connection
Return values
mixed —generateNewSecret()
public
generateNewSecret() : string
Return values
string —getSecret()
public
getSecret() : string
Return values
string —setSecret()
private
setSecret(string $secret) : void
Parameters
- $secret : string