Lcobucci\JWT\Signer\Rsa::doVerify PHP Method

doVerify() public method

public doVerify ( string $expected, string $payload, Lcobucci\JWT\Signer\Key $key ) : boolean
$expected string
$payload string
$key Lcobucci\JWT\Signer\Key
return boolean
    public function doVerify(string $expected, string $payload, Key $key) : bool
    {
        $key = openssl_get_publickey($key->getContent());
        $this->validateKey($key);
        return openssl_verify($payload, $expected, $key, $this->getAlgorithm()) === 1;
    }