net.sf.jqql.packets.out.disk
Class AuthenticatePacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.AuthenticatePacket
public class AuthenticatePacket
- extends DiskOutPacket
network disk login request packet
1. head
2. my QQ number, 4 byte
3. my authentication token, 24 byte
4. unknown 12 byte
5. length of encoded password string, 2 byte
6. encode password string
Note: way of encoding password is: use the leading 16 byte of authToken to encode password's MD5
7. my nick name, 12 byte, feel 0 to fit
8. unknown 20 byte
网络硬盘登录请求包
1. 头部
2. 我的QQ号,4字节
3. 我的认证令牌,24字节
4. 未知的12字节
5. 密码加密串长度,2字节
6. 密码加密串
Note: 密码加密串的生成方法是: 用authToken的前16个字节,加密密码的MD5
7. 我的昵称,12字节,不足填0
8. 未知的20字节
- Author:
- luma
| Fields inherited from class net.sf.jqql.packets.Packet |
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user |
| Methods inherited from class net.sf.jqql.packets.DiskOutPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getLocalIp, getTailLength, hashCode, parseHeader, parseTail, postFill, putHead, putTail, setLocalIp, validateHeader |
| Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
AuthenticatePacket
public AuthenticatePacket(QQUser user)
AuthenticatePacket
public AuthenticatePacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName in class OutPacket
- Returns:
- descriptive name of packet
包的描述性名称
putBody
protected void putBody(ByteBuffer buf)
- Description copied from class:
Packet
- initialize packet body
初始化包体
- Specified by:
putBody in class Packet
- Parameters:
buf - ByteBuffer
getNick
public String getNick()
- Returns:
- the nick
setNick
public void setNick(String nick)
- Parameters:
nick - the nick to set
getPassword
public String getPassword()
- Returns:
- the password
setPassword
public void setPassword(String password)
- Parameters:
password - the password to set