protected function checkKey(JWKInterface $key) { Assertion::eq($key->get('kty'), 'oct', 'Wrong key type.'); Assertion::true($key->has('k'), 'The key parameter "k" is missing.'); }