public static String calculateMD5RequestDigest(String uri,String username,String password,String realm,String nonce,String nc,String cnonce,String qop){
  String reqA1=username + ":" + realm+ ":"+ password;
  String reqA2="POST:" + uri;
  String hashA1=checksumMD5(reqA1);
  String hashA2=checksumMD5(reqA2);
  String requestDigest=digestMD5(hashA1,nonce + ":" + nc+ ":"+ cnonce+ ":"+ qop+ ":"+ hashA2);
  return requestDigest;
}

public static String calculateMD5RequestDigest ( String uri , String username , String password , String realm , String nonce , String nc , String cnonce , String qop ) { String reqA1 = username + ":" + realm + ":" + password ; String reqA2 = "POST:" + uri ; String hashA1 = checksumMD5 ( reqA1 ) ; String hashA2 = checksumMD5 ( reqA2 ) ; String requestDigest = digestMD5 ( hashA1 , nonce + ":" + nc + ":" + cnonce + ":" + qop + ":" + hashA2 ) ; return requestDigest ; }
calculate the request digest for algorithm = md5 .
