| 1 | <?php |
||
| 16 | class RandomECKey extends RandomKey |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | protected function getKeyConfig(array $config) |
||
| 22 | { |
||
| 23 | $values = $config['additional_values']; |
||
| 24 | $values['kty'] = 'EC'; |
||
| 25 | $values['crv'] = $config['curve']; |
||
| 26 | |||
| 27 | return $values; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function getKey() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function addConfiguration(NodeDefinition $node) |
||
| 56 | |||
| 57 | private static function checkCurve() |
||
| 63 | } |
||
| 64 |