Namshi\JOSE\SimpleJWS::isValid PHP Méthode

isValid() public méthode

Checks that the JWS has been signed with a valid private key by verifying it with a public $key and the token is not expired.
public isValid ( resource | string $key, string $algo = null ) : boolean
$key resource | string
$algo string The algorithms this JWS should be signed with. Use it if you want to restrict which algorithms you want to allow to be validated.
Résultat boolean
    public function isValid($key, $algo = null)
    {
        return $this->verify($key, $algo) && !$this->isExpired();
    }