Skip to content
Permalink
Browse files
http async client is released
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1537258 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Oct 30, 2013
1 parent e2cf8e3 commit 7294ff05b25d1388128b8a546d47a6ebe61ffd61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
@@ -90,8 +90,8 @@
<cxf.ehcache.version>2.7.4</cxf.ehcache.version>
<cxf.fastinfoset.bundle.version>1.2.7_4</cxf.fastinfoset.bundle.version>
<cxf.hazelcast.version>1.9.4</cxf.hazelcast.version>
<cxf.httpcomponents.asyncclient.version>4.0-beta5-SNAPSHOT</cxf.httpcomponents.asyncclient.version>
<cxf.httpcomponents.asyncclient.version.range>[4.0-beta4,4.1)</cxf.httpcomponents.asyncclient.version.range>
<cxf.httpcomponents.asyncclient.version>4.0</cxf.httpcomponents.asyncclient.version>
<cxf.httpcomponents.asyncclient.version.range>[4.0,4.1)</cxf.httpcomponents.asyncclient.version.range>
<cxf.httpcomponents.client.version>4.3.1</cxf.httpcomponents.client.version>
<cxf.httpcomponents.core.version>4.3</cxf.httpcomponents.core.version>
<cxf.httpcomponents.core.version.range>[4.3,4.4.0)</cxf.httpcomponents.core.version.range>
@@ -144,7 +144,6 @@ synchronized String generateAuth(String uri, String username, String password) {
MessageDigest digester = MessageDigest.getInstance(digAlg);
String a1 = username + ":" + realm + ":" + password;
if ("MD5-sess".equalsIgnoreCase(algorithm)) {
algorithm = "MD5";
String tmp2 = encode(digester.digest(a1.getBytes(charset)));
a1 = tmp2 + ':' + nonce + ':' + cnonce;
}
@@ -171,6 +170,7 @@ synchronized String generateAuth(String uri, String username, String password) {
outParams.put("nc", ncstring);
outParams.put("cnonce", cnonce);
outParams.put("response", response);
outParams.put("algorithm", algorithm);
return new HttpAuthHeader(HttpAuthHeader.AUTH_TYPE_DIGEST, outParams).getFullHeader();
} catch (Exception ex) {
throw new RuntimeException(ex);
@@ -91,6 +91,7 @@ public String createCnonce() throws UnsupportedEncodingException {
expectedParams.put("realm", "MyCompany realm.");
expectedParams.put("qop", "auth");
expectedParams.put("uri", "");
expectedParams.put("algorithm", "MD5");
assertEquals(expectedParams, params);
control.verify();
}

0 comments on commit 7294ff0

Please sign in to comment.