| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Checker; |
| 6 | |
| 7 | interface HeaderChecker |
| 8 | { |
| 9 | /** |
| 10 | * This method is called when the header parameter is present. If for some reason the value is not valid, an |
| 11 | * InvalidHeaderException must be thrown. |
| 12 | */ |
| 13 | public function checkHeader(mixed $value): void; |
| 14 | |
| 15 | /** |
| 16 | * The method returns the header parameter to be checked. |
| 17 | */ |
| 18 | public function supportedHeader(): string; |
| 19 | |
| 20 | /** |
| 21 | * When true, the header parameter to be checked MUST be set in the protected header of the token. |
| 22 | */ |
| 23 | public function protectedHeaderOnly(): bool; |
| 24 | } |