1 | <?php |
||
20 | final class JWKSet extends AbstractSource implements JWKSourceInterface |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function createDefinition(ContainerBuilder $container, array $config) |
||
26 | { |
||
27 | $definition = new Definition('Jose\Object\JWK'); |
||
28 | $definition->setFactory([ |
||
29 | new Reference('jose.factory.jwk'), |
||
30 | 'createFromKeySet', |
||
31 | ]); |
||
32 | $definition->setArguments([new Reference($config['key_set']), $config['index']]); |
||
33 | |||
34 | return $definition; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getKey() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function addConfiguration(NodeDefinition $node) |
||
62 | } |
||
63 |