19declare(strict_types=1);
50 private \Closure $fetch,
53 $this->clock =
$clock ??
static fn():
int => time();
65 $this->
settings->set(self::LAST_REFRESH, (
string) $now);
68 $keys = ($this->fetch)();
69 }
catch (\Throwable) {
Fetches the proof keys from the discovery again when a request could not be verified with the stored ...
__construct(private ProofKeyRepository $repository, private \ilSetting $settings, private \Closure $fetch, ?\Closure $clock=null)
The current and the previous proof key of a WOPI client.