checkKey($key); return ''; } public function verify(JWK $key, string $input, string $signature): bool { return $signature === ''; } public function name(): string { return 'none'; } private function checkKey(JWK $key): void { if (! in_array($key->get('kty'), $this->allowedKeyTypes(), true)) { throw new InvalidArgumentException('Wrong key type.'); } } }