JML

net.sf.jqql.packets.out.disk
Class PasswordOpPacket

java.lang.Object
  extended by net.sf.jqql.packets.Packet
      extended by net.sf.jqql.packets.OutPacket
          extended by net.sf.jqql.packets.DiskOutPacket
              extended by 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

Field Summary
 
Fields inherited from class net.sf.jqql.packets.OutPacket
ack, key, resendCountDown, sendCount, seq, timeout
 
Fields inherited from class net.sf.jqql.packets.Packet
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user
 
Constructor Summary
PasswordOpPacket(ByteBuffer buf, int length, QQUser user)
           
PasswordOpPacket(QQUser user)
           
 
Method Summary
 String getNewPassword()
           
 String getPacketName()
           
 String getPassword()
           
 int getSubCommand()
           
protected  void putBody(ByteBuffer buf)
          initialize packet body 初始化包体
 void setNewPassword(String newPassword)
           
 void setPassword(String password)
           
 void setSubCommand(int subCommand)
           
 
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
 
Methods inherited from class net.sf.jqql.packets.Packet
getCommand, getHeader, getSequence, getSource, hash, isDuplicated, setDuplicated, setHeader, setSequence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordOpPacket

public PasswordOpPacket(ByteBuffer buf,
                        int length,
                        QQUser user)
                 throws PacketParseException
Throws:
PacketParseException

PasswordOpPacket

public PasswordOpPacket(QQUser user)
Method Detail

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

JML