protected function checkKeyUsage(JWKInterface $key, $usage) { if ($key->has('use')) { return $this->checkUsage($key, $usage); } if ($key->has('key_ops')) { return $this->checkOperation($key, $usage); } return true; }