Jose\VerifierInterface::verifyWithKey PHP Method

verifyWithKey() public method

The input must be a valid JWS. This method is usually called after the "load" method.
public verifyWithKey ( Jose\Object\JWSInterface $input, Jose\Object\JWKInterface $jwk, null | string $detached_payload = null, null | integer &$signature_index = null )
$input Jose\Object\JWSInterface A JWS object.
$jwk Jose\Object\JWKInterface The signature will be verified using keys in the key set
$detached_payload null | string If not null, the value must be the detached payload encoded in Base64 URL safe. If the input contains a payload, throws an exception.
$signature_index null | integer If the JWS has been verified, an integer that represents the ID of the signature is set
    public function verifyWithKey(Object\JWSInterface $input, Object\JWKInterface $jwk, $detached_payload = null, &$signature_index = null);