private static byte[] ntlmv2Hash(String target,String user,String password) throws Exception {
  byte[] ntlmHash=ntlmHash(password);
  String identity=user.toUpperCase() + target;
  return hmacMD5(identity.getBytes("UnicodeLittleUnmarked"),ntlmHash);
}

private static byte [ ] ntlmv2Hash ( String target , String user , String password ) throws Exception { byte [ ] ntlmHash = ntlmHash ( password ) ; String identity = user . toUpperCase ( ) + target ; return hmacMD5 ( identity . getBytes ( "UnicodeLittleUnmarked" ) , ntlmHash ) ; }
creates the ntlmv2 hash of the user ' s password .
