class BearerTokenValidator implements AuthorizationValidatorInterface

Methods

__construct(AccessTokenRepositoryInterface $accessTokenRepository, array $publicKeys, DateInterval|null $jwtValidAtDateLeeway = null)

Create a validator for the retained keys, ordered newest first.

now()

Return the current time.

Details

at line 50
__construct(AccessTokenRepositoryInterface $accessTokenRepository, array $publicKeys, DateInterval|null $jwtValidAtDateLeeway = null)

Create a validator for the retained keys, ordered newest first.

Parameters

AccessTokenRepositoryInterface $accessTokenRepository
array $publicKeys
DateInterval|null $jwtValidAtDateLeeway

at line 78
DateTimeImmutable now()

Return the current time.

Return Value

DateTimeImmutable