Used an int rather than String in TestDriver.java switch statement due to switch(String) incompatibility pre-JDK7. Also, created a helper method in HashedAuthenticator.java, buildSig, that takes StringBuilder query and returns the hashed String signature