Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
55 | public function createJWKSet(array $values = []) |
||
56 | { |
||
57 | $key_set = new JWKSet(); |
||
58 | if (array_key_exists('keys', $values)) { |
||
59 | foreach ($values['keys'] as $value) { |
||
60 | $key = $this->getJWKManager()->createJWK($value); |
||
61 | $key_set->addKey($key); |
||
62 | } |
||
63 | } |
||
64 | |||
65 | return $key_set; |
||
66 | } |
||
67 | } |
||
68 |