|
static | parseKeySet (array $jwks, string $defaultAlg=null) |
|
static | parseKey (array $jwk, string $defaultAlg=null) |
|
◆ parseKey()
static parseKey |
( |
array | $jwk, |
|
|
string | $defaultAlg = null ) |
|
static |
Parse a JWK key
- Parameters
-
| array<mixed> | $jwk An individual JWK |
string | $defaultAlg | The algorithm for the Key object if "alg" is not set in the JSON Web Key Set |
- Returns
- Key The key object for the JWK
- Exceptions
-
InvalidArgumentException | Provided JWK is empty |
UnexpectedValueException | Provided JWK was invalid |
DomainException | OpenSSL failure |
@uses createPemFromModulusAndExponent
◆ parseKeySet()
static parseKeySet |
( |
array | $jwks, |
|
|
string | $defaultAlg = null ) |
|
static |
Parse a set of JWK keys
- Parameters
-
| array<mixed> | $jwks The JSON Web Key Set as an associative array |
string | $defaultAlg | The algorithm for the Key object if "alg" is not set in the JSON Web Key Set |
- Returns
- array<string, Key> An associative array of key IDs (kid) to Key objects
- Exceptions
-
InvalidArgumentException | Provided JWK Set is empty |
UnexpectedValueException | Provided JWK Set was invalid |
DomainException | OpenSSL failure |
@uses parseKey
The documentation for this class was generated from the following file:
- C:/Users/porto/Documents/xampp/htdocs/1/proyecto_sanromilla/sanromilla_admin/src/vendor/firebase/php-jwt/src/JWK.php