public boolean verifyToken(String data,String signature){
  if (signature.length() == 0) {
    return false;
  }
  try {
    return signingKey.verify(data,signature);
  }
 catch (  KeyczarException e) {
    return false;
  }
}

public boolean verifyToken ( String data , String signature ) { if ( signature . length ( ) == 0 ) { return false ; } try { return signingKey . verify ( data , signature ) ; } catch ( KeyczarException e ) { return false ; } }
returns true if signature is valid for data , using the signing key . keyczar throws exceptions for many cases of malformed signatures , but this instead returns false .
