Jose\Verifier::verifyWithKey PHP Method

verifyWithKey() public method

public verifyWithKey ( Jose\Object\JWSInterface $jws, Jose\Object\JWKInterface $jwk, $detached_payload = null, &$recipient_index = null )
$jws Jose\Object\JWSInterface
$jwk Jose\Object\JWKInterface
    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);
    }