class ClientKeyRepository

Constants

protected REFRESH_LOCK_SECONDS

Methods

__construct(Factory $cache, Repository $config, RemoteDocumentFetcher $documents, JwkValidator $keys)

Create the client public-key repository.

Key|null
find(Client $client, string|null $identifier, string $algorithm)

Find the public key registered for a client assertion.

void
validate(array $document, string $algorithm)

Validate a public key set before registering or caching it.

array|null
select(array $document, string|null $identifier, string $algorithm)

Select exactly one matching key without trying signatures against every key.

array
keySet(array $document)

Read the keys from a JSON Web Key Set.

Details

at line 21
__construct(Factory $cache, Repository $config, RemoteDocumentFetcher $documents, JwkValidator $keys)

Create the client public-key repository.

Parameters

Factory $cache
Repository $config
RemoteDocumentFetcher $documents
JwkValidator $keys

at line 32
Key|null find(Client $client, string|null $identifier, string $algorithm)

Find the public key registered for a client assertion.

Parameters

Client $client
string|null $identifier
string $algorithm

Return Value

Key|null

at line 88
void validate(array $document, string $algorithm)

Validate a public key set before registering or caching it.

Parameters

array $document
string $algorithm

Return Value

void

at line 127
protected array|null select(array $document, string|null $identifier, string $algorithm)

Select exactly one matching key without trying signatures against every key.

Parameters

array $document
string|null $identifier
string $algorithm

Return Value

array|null

at line 152
protected array keySet(array $document)

Read the keys from a JSON Web Key Set.

Parameters

array $document

Return Value

array