net.sf.jqql.packets.out.disk
Class PasswordOpPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.PasswordOpPacket
public class PasswordOpPacket
- extends DiskOutPacket
network disk operation
1. head
2. my QQ number, 4 byte
3. subcommand, 4 byte
4. length of string encoded with old key,2 byte
5. string encoded with old key
6. length of string encoded with new key, 2 byte
7. string encoded with new key
ç½‘ç»œç¡¬ç›˜å¯†ç æ“作
1. 头部
2. 我的QQå·ï¼Œ4å—节
3. å命令,4å—节
4. 旧密ç åŠ å¯†ä¸²é•¿åº¦ï¼Œ2å—节
5. 旧密ç åŠ å¯†ä¸²
6. 新密ç åŠ å¯†ä¸²é•¿åº¦ï¼Œ2å—节
7. 新密ç åŠ å¯†ä¸²
- 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 |
PasswordOpPacket
public PasswordOpPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
PasswordOpPacket
public PasswordOpPacket(QQUser user)
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
getNewPassword
public String getNewPassword()
- Returns:
- the newPassword
setNewPassword
public void setNewPassword(String newPassword)
- Parameters:
newPassword
- the newPassword to set
getPassword
public String getPassword()
- Returns:
- the password
setPassword
public void setPassword(String password)
- Parameters:
password
- the password to set
getSubCommand
public int getSubCommand()
- Returns:
- the subCommand
setSubCommand
public void setSubCommand(int subCommand)
- Parameters:
subCommand
- the subCommand to set