private function checkKey(JWKInterface $key) { Assertion::eq($key->get('kty'), 'RSA', 'Wrong key type.'); }