| 1 | <?php |
||
| 18 | final class X5U extends DownloadedJWKSet |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function createDefinition(ContainerBuilder $container, array $config) |
||
| 24 | { |
||
| 25 | $definition = new Definition('Jose\Object\X5UJWKSet'); |
||
| 26 | $definition->setFactory([ |
||
| 27 | new Reference('jose.factory.jwk'), |
||
| 28 | 'createFromX5U', |
||
| 29 | ]); |
||
| 30 | $definition->setArguments([ |
||
| 31 | $config['url'], |
||
| 32 | $config['is_secured'], |
||
| 33 | null !== $config['cache'] ? new Reference($config['cache']) : null, |
||
| 34 | $config['cache_ttl'], |
||
| 35 | $config['is_https'], |
||
| 36 | ]); |
||
| 37 | |||
| 38 | return $definition; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getKeySet() |
||
| 48 | } |
||
| 49 |