ClientKeyRepository
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
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.
at line 32
Key|null
find(Client $client, string|null $identifier, string $algorithm)
Find the public key registered for a client assertion.
at line 88
void
validate(array $document, string $algorithm)
Validate a public key set before registering or caching it.
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.
at line 152
protected array
keySet(array $document)
Read the keys from a JSON Web Key Set.