Reference documentation and code samples for the A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec. Client class JWK.
JSON Web Key implementation, based on this spec: https://tools.ietf.org/html/draft-ietf-jose-json-web-key-41
PHP version 5
Namespace
Firebase \ JWTMethods
static::parseKeySet
Parse a set of JWK keys
| Parameters | |
|---|---|
| Name | Description |
jwks |
array
The JSON Web Key Set as an associative array |
defaultAlg |
string
The algorithm for the Key object if "alg" is not set in the JSON Web Key Set |
| Returns | |
|---|---|
| Type | Description |
array |
An associative array of key IDs (kid) to Key objects |
static::parseKey
Parse a JWK key
| Parameters | |
|---|---|
| Name | Description |
jwk |
array
An individual JWK |
defaultAlg |
string
The algorithm for the Key object if "alg" is not set in the JSON Web Key Set |
| Returns | |
|---|---|
| Type | Description |
Key |
The key object for the JWK |