- Java code
public void setAuthenticatorSource(String tStamp) { byte[] bytes = new byte[6 + 9 + Password.length() + 10]; if (SourceAddr == null || Password == null) { AuthenticatorSource = null; } int iPos = 0; byte[] addr = SourceAddr.getBytes(); System.arraycopy(addr, 0, bytes, 0, addr.length); iPos += addr.length + 9; byte[] pswd = Password.getBytes(); System.arraycopy(pswd, 0, bytes, iPos, pswd.length); iPos += pswd.length; byte[] tsp = tStamp.getBytes(); System.arraycopy(tsp, 0, bytes, iPos, tsp.length); MD5 md5 = new MD5(); AuthenticatorSource = md5.getMD5ofBytes(bytes, bytes.length); }
返回的status总是认证错误,请做过的指点下迷津。
------解决方案--------------------------------------------------------
返回的status值是多少呢