code: public static void validate(HppResponse hppResponse, String secret) {
  		if (!hppResponse.isHashValid(secret)) {
  			LOGGER.error("HppResponse contains an invalid security hash.");
  			throw new RealexValidationException("HppResponse contains an invalid security hash");
  		}
  	}
docs: Method validates HPP response hash.
  
  @param hppResponse
  @param secret