| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | class AbstractRsaVerifier implements Verifier |
||
| 10 | { |
||
| 11 | use Algorithm; |
||
| 12 | |||
| 13 | protected RsaPublicKey $publicKey; |
||
| 14 | |||
| 15 | public function __construct(RsaPublicKey $publicKey) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | */ |
||
| 23 | public function verify(string $plain, string $signature): void |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | public function kid(): ?string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getPublicKey(): RsaPublicKey |
||
| 43 |