HtpasswdHandler hq = new HtpasswdHandler();
hq.setPath("C:\\server\\Apache\\bin\\htpasswd.exe");
hq.setOutputFormat(HtpasswdHandler.TRIM);
hq.setEncryption(HtpasswdHandler.ENCRYPT_SHA);
hq.setCheckExistence(HtpasswdHandler.CHECK);
System.out.println(hq.executeQuery(args[0], args[1]));
//System.out.println("ReturnCode is: "+hq.getReturnCode());
// System.out.println("Match is: "+hq.comparePasswords(args[0],args[1],args[2]));
}
}