1 | <?php |
||
20 | final class IssuedAtChecker implements ClaimChecker, HeaderChecker |
||
21 | { |
||
22 | private const NAME = 'iat'; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $allowedTimeDrift; |
||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | private $protectedHeaderOnly; |
||
32 | |||
33 | public function __construct(int $allowedTimeDrift = 0, bool $protectedHeaderOnly = false) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function checkClaim($value): void |
||
51 | |||
52 | public function supportedClaim(): string |
||
56 | |||
57 | public function checkHeader($value): void |
||
66 | |||
67 | public function supportedHeader(): string |
||
71 | |||
72 | public function protectedHeaderOnly(): bool |
||
76 | } |
||
77 |