1 | <?php |
||
20 | class X5U 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 | $definition->setFactory([ |
||
29 | new Reference('jose.factory.jwk'), |
||
30 | 'createFromX5U', |
||
31 | ]); |
||
32 | $definition->setArguments([ |
||
33 | $config['url'], |
||
34 | $config['is_secured'], |
||
35 | $config['cache'], |
||
36 | $config['cache_ttl'], |
||
37 | ]); |
||
38 | |||
39 | return $definition; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function getKeySet() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function addConfiguration(NodeDefinition $node) |
||
64 | } |
||
65 |