You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Arash Bijanzadeh <ar...@gmail.com> on 2005/03/03 12:21:44 UTC

RFC 2617 / Digest Access Authentication

Hi all,
I am trying to implement the Digest MD5 authentication according to
RFC 2617 without siccess.
Here is my code:
 byte[] A1=org.apache.commons.codec.digest.DigestUtils.md5(username+":"+realm+":"+password);
        byte[] A2=org.apache.commons.codec.digest.DigestUtils.md5("GET"
+":"+uri);
        byte[] A3=org.apache.commons.codec.digest.DigestUtils.md5(A1+":"+nonce+":"+nc+":"+cnonce+":"+qop+":"+
A2);

But the A# is not equal to clientDigest. Could any body help me? Is
there any implementation of this RFC in java?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: RFC 2617 / Digest Access Authentication

Posted by Michael Becke <mb...@gmail.com>.
Hi Arash,

HttpClient implements digest authentication.

<http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/auth/DigestScheme.java?rev=155418&view=markup>

Mike


On Thu, 3 Mar 2005 14:51:44 +0330, Arash Bijanzadeh <ar...@gmail.com> wrote:
> Hi all,
> I am trying to implement the Digest MD5 authentication according to
> RFC 2617 without siccess.
> Here is my code:
>  byte[] A1=org.apache.commons.codec.digest.DigestUtils.md5(username+":"+realm+":"+password);
>         byte[] A2=org.apache.commons.codec.digest.DigestUtils.md5("GET"
> +":"+uri);
>         byte[] A3=org.apache.commons.codec.digest.DigestUtils.md5(A1+":"+nonce+":"+nc+":"+cnonce+":"+qop+":"+
> A2);
> 
> But the A# is not equal to clientDigest. Could any body help me? Is
> there any implementation of this RFC in java?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org