public function verifyWithKey(Object\JWSInterface $jws, Object\JWKInterface $jwk, $detached_payload = null, &$recipient_index = null) { $jwk_set = new Object\JWKSet(); $jwk_set->addKey($jwk); $this->verifySignatures($jws, $jwk_set, $detached_payload, $recipient_index); }