San Romilla 1.0.0
Loading...
Searching...
No Matches
JWK Class Reference

Static Public Member Functions

static parseKeySet (array $jwks, string $defaultAlg=null)
 
static parseKey (array $jwk, string $defaultAlg=null)
 

Member Function Documentation

◆ parseKey()

static parseKey ( array $jwk,
string $defaultAlg = null )
static

Parse a JWK key

Parameters
array<mixed>$jwk An individual JWK
string$defaultAlgThe 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
InvalidArgumentExceptionProvided JWK is empty
UnexpectedValueExceptionProvided JWK was invalid
DomainExceptionOpenSSL 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$defaultAlgThe 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
InvalidArgumentExceptionProvided JWK Set is empty
UnexpectedValueExceptionProvided JWK Set was invalid
DomainExceptionOpenSSL failure

@uses parseKey


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