code: public static String HA1(String username, String realm, String password, String algorithm){
          String ha1 = "";
          ha1 = DigestAuthentication.H(username+":"+realm+":"+password, algorithm);
          return ha1;
      }
docs: USed for unit testing