Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBD991010A for ; Wed, 30 Oct 2013 20:25:26 +0000 (UTC) Received: (qmail 2165 invoked by uid 500); 30 Oct 2013 20:25:26 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 2103 invoked by uid 500); 30 Oct 2013 20:25:25 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 2094 invoked by uid 99); 30 Oct 2013 20:25:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 20:25:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 20:25:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 730E62388994; Wed, 30 Oct 2013 20:25:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1537280 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java Date: Wed, 30 Oct 2013 20:25:04 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131030202504.730E62388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Wed Oct 30 20:25:04 2013 New Revision: 1537280 URL: http://svn.apache.org/r1537280 Log: This wasn't supposed to be committed as part of the other commit Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java?rev=1537280&r1=1537279&r2=1537280&view=diff ============================================================================== --- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java (original) +++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/DigestAuthSupplier.java Wed Oct 30 20:25:04 2013 @@ -144,6 +144,7 @@ public class DigestAuthSupplier implemen 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; } @@ -170,7 +171,6 @@ public class DigestAuthSupplier implemen 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);