benoit934,
Do you get that "NumberFormatException" error even when passing the correct hash? That could indicate there is an error in how you are creating or processing the hash.
Otherwise, if the script is still accepting the correct hash without any errors, you could just add extra catch statements to deal with that error you are receiving on a bad hash (much like geoff_b found above with the "ArrayIndexOutOfBoundsException"):
catch (NumberFormatException e) {
getLogger().info("HTTP Cupertino Authorization failed!");
}


Reply With Quote