| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 52 | public function convertStringToPayload(array $header, $content) |
||
| 53 | { |
||
| 54 | $jwk = json_decode($content, true); |
||
| 55 | if (!is_array($jwk)) { |
||
| 56 | throw new \InvalidArgumentException('The content type claims content is a JWK, but cannot be converted into JWK'); |
||
| 57 | } |
||
| 58 | |||
| 59 | return $this->getJWKManager()->createJWK($jwk); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |