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" ) ; } }
Method validates HPP response hash .