| 1 | <?php |
||
| 20 | class PublicJWKSet 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 | 'createPublicKeySet', |
||
| 31 | ]); |
||
| 32 | $definition->setArguments([new Reference($config['id'])]); |
||
| 33 | |||
| 34 | return $definition; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function getKeySet() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function addConfiguration(NodeDefinition $node) |
||
| 59 | } |
||
| 60 |