code: public boolean isHashValid(String secret) {
  		String generatedHash = generateHash(secret);
  		return generatedHash.equals(this.hash);
  	}
docs: Helper method to determine if the HPP response security hash is valid.
  
  @param secret
  @return boolean