| 1 | <?php |
||
| 20 | class Keys extends AbstractSource implements JWKSetSourceInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | public function createDefinition(ContainerBuilder $container, array $config) |
||
| 26 | { |
||
| 27 | $definition = new Definition('Jose\Object\JWKSet'); |
||
| 28 | foreach ($config['id'] as $key_id) { |
||
| 29 | $ref = new Reference($key_id); |
||
| 30 | $definition->addMethodCall('addKey', [$ref]); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $definition; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function getKeySet() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function addConfiguration(NodeDefinition $node) |
||
| 59 | } |
||
| 60 |