| 1 | <?php |
||
| 21 | final class None implements SignatureAlgorithmInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function sign(JWKInterface $key, $data) |
||
| 27 | { |
||
| 28 | $this->checkKey($key); |
||
| 29 | |||
| 30 | return ''; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function verify(JWKInterface $key, $data, $signature) |
||
| 37 | { |
||
| 38 | return $signature === $this->sign($key, $data); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param JWKInterface $key |
||
| 43 | */ |
||
| 44 | protected function checkKey(JWKInterface $key) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getAlgorithmName() |
||
| 56 | } |
||
| 57 |