| Total Complexity | 8 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | class EdDsaVerifier implements Verifier |
||
| 12 | { |
||
| 13 | protected static string $name = 'EdDSA'; |
||
| 14 | |||
| 15 | protected EdDsaPublicKey $publicKey; |
||
| 16 | |||
| 17 | public function __construct(EdDsaPublicKey $publicKey) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function verify(string $plain, string $signature): void |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | public function name(): string |
||
| 41 | { |
||
| 42 | return static::$name; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function kid(): ?string |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getPublicKey(): EdDsaPublicKey |
||
| 56 | } |
||
| 57 | } |
||
| 58 |