| 1 | <?php |
||
| 16 | final class ExpirationTimeChecker implements ClaimChecker |
||
| 17 | { |
||
| 18 | private const CLAIM_NAME = 'exp'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | private $allowedTimeDrift; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ExpirationTimeChecker constructor. |
||
| 27 | * |
||
| 28 | * @param int $allowedTimeDrift |
||
| 29 | */ |
||
| 30 | public function __construct(int $allowedTimeDrift = 0) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function checkClaim($value) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function supportedClaim(): string |
||
| 55 | } |
||
| 56 |