lib/3rdParty/composer/web-token/jwt-library/Signature/Algorithm/SignatureAlgorithm.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Signature\Algorithm; |
| 6 | |
| 7 | use Jose\Component\Core\Algorithm; |
| 8 | use Jose\Component\Core\JWK; |
| 9 | |
| 10 | interface SignatureAlgorithm extends Algorithm |
| 11 | { |
| 12 | /** |
| 13 | * Sign the input. |
| 14 | * |
| 15 | * @param JWK $key The private key used to sign the data |
| 16 | * @param string $input The input |
| 17 | */ |
| 18 | public function sign(JWK $key, string $input): string; |
| 19 | |
| 20 | /** |
| 21 | * Verify the signature of data. |
| 22 | * |
| 23 | * @param JWK $key The private key used to sign the data |
| 24 | * @param non-empty-string $input The input |
| 25 | * @param non-empty-string $signature The signature to verify |
| 26 | */ |
| 27 | public function verify(JWK $key, string $input, string $signature): bool; |
| 28 | } |