|  | 
| static | parseKey (array $jwk, string $defaultAlg=null) | 
|  | Parse a JWK key. 
 | 
|  | 
| static | parseKeySet (array $jwks, string $defaultAlg=null) | 
|  | Parse a set of JWK keys. 
 | 
|  | 
◆ parseKey()
  
  | 
        
          | static JWK::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 |  
 
- Return values
- 
  
    | 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 JWK::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 |  
 
- Return values
- 
  
    | 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: