This content has been marked as final.
Show 1 reply
-
1. Re: DIGEST authentication jboss 4.2 problem
v2adam Mar 9, 2011 3:06 AM (in response to dcabrera22)Hello all
I have same problem, i try used this on jboss.6.0.0.Final, i output password and password always change, i try hash same password manually,
used this code:
final MessageDigest messageDigest = MessageDigest.getInstance("MD5"); messageDigest.reset(); //username:realm:password messageDigest.update(("aaa" + ":" + "UserAuth" + ":" + "123").getBytes(Charset.forName("UTF8"))); final byte[] resultByte = messageDigest.digest(); final String result = new String(Hex.encodeHex(resultByte));
and password not change, what is the problem, i not understand, please help