return IOUtils.toByteArray(response.getEntity().getContent());
}
private void login() throws ClientProtocolException, IOException, DecoderException, HttpException {
openLogin();
ValidationCode validationCode = loginCheck();
String code = validationCode.getCode();
if (validationCode.need()) {
LOGGER.debug("Qzone visitor need validation code.");
code = yundama.decode(getValidationCode(), YundamaType.ALPHANUMERIC).getResult();
LOGGER.debug("Qzone visitor validation code is {}.", code);
}
String p = DigestUtils.md5Hex(password).toUpperCase();
byte[] byte1 = Hex.decodeHex(p.toCharArray());
byte[] byte2 = Hex.decodeHex(validationCode.getUid().toCharArray());
byte[] bytes = new byte[byte1.length + byte2.length];
System.arraycopy(byte1, 0, bytes, 0, byte1.length);
System.arraycopy(byte2, 0, bytes, byte1.length, byte2.length);
p = DigestUtils.md5Hex(bytes).toUpperCase();
p = DigestUtils.md5Hex(p + code.toUpperCase()).toUpperCase();