class ServerEntry

Keep parsed keys and reusable servers together for one immutable settings set.

Properties

array{keys: list<array<string, string>>} $jwks
array<string, int> $retentionBounds
AuthorizationServer> $authorizationServers
AuthorizationServer> $personalAccessServers
ResourceServer|null $resourceServer
BearerTokenValidator|null $tokenValidator

Methods

__construct(ServerSettings $settings, array $keys, array $verificationKeys, array $signingKeys)

Keep a settings set and its parsed keys for reuse by the worker.

signingKey(CarbonImmutable $at)

Select the newest signing key active at the start of an issuance.

Details

at line 43
__construct(ServerSettings $settings, array $keys, array $verificationKeys, array $signingKeys)

Keep a settings set and its parsed keys for reuse by the worker.

Parameters

ServerSettings $settings
array $keys
array $verificationKeys
array $signingKeys

at line 61
SigningCryptKey signingKey(CarbonImmutable $at)

Select the newest signing key active at the start of an issuance.

Parameters

CarbonImmutable $at

Return Value

SigningCryptKey