| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Checker; |
| 6 | |
| 7 | interface ClaimChecker |
| 8 | { |
| 9 | /** |
| 10 | * When the token has the applicable claim, the value is checked. If for some reason the value is not valid, an |
| 11 | * InvalidClaimException must be thrown. |
| 12 | */ |
| 13 | public function checkClaim(mixed $value): void; |
| 14 | |
| 15 | /** |
| 16 | * The method returns the claim to be checked. |
| 17 | */ |
| 18 | public function supportedClaim(): string; |
| 19 | } |