This content has been marked as final.
Show 1 reply
-
1. Re: JBOSS-WS verify password Digest manually at the server
lychko Oct 11, 2013 11:01 AM (in response to kenbarnes)Ken Barnes написал(а):
String concat = nonce + created + "password";
This should look like
byte[] b1 = nonce != null ? Base64.decode(nonce) : new byte[0]; byte[] b2 = created != null ? created.getBytes("UTF-8") : new byte[0]; byte[] b3 = "password"; byte[] b4 = new byte[b1.length + b2.length + b3.length]; int offset = 0; System.arraycopy(b1, 0, b4, offset, b1.length); offset += b1.length; System.arraycopy(b2, 0, b4, offset, b2.length); offset += b2.length; System.arraycopy(b3, 0, b4, offset, b3.length);