filestack/FilestackSecurity.php
public function verify($policy, $secret)
    {
        try {
            $result = $this->generate($secret, $policy);
        } catch (FilestackException $e) {
            return false;
        }

        return $result;
    }
public function verify($policy, $secret)
    {
        try {
            $result = $this->generate($secret, $policy);
        } catch (FilestackException $e) {
            return false;
        }

        return $result;
    }
public function verify ( $ policy , $ secret ) { try { $ result = $ this -> generate ( $ secret , $ policy ) ; } catch ( FilestackException $ e ) { return false ; } return $ result ; }
Verify that a policy is valid

@param array     $policy                 policy to verify
@param string?   $secret                 security secret

@return bool
Verify that a policy is valid