JML

net.sf.jqql.beans
Class QQUser

java.lang.Object
  extended by net.sf.jqql.beans.QQUser

public class QQUser
extends Object

wrap QQ user info 封装QQ用户的信息

Author:
luma

Constructor Summary
QQUser(int qqNum, byte[] md5pwd)
           
QQUser(int qqNum, String pwd)
           
 
Method Summary
 byte[] getAuthToken()
           
 byte[] getClientKey()
           
 ContactInfo getContactInfo()
           
 byte[] getFileAgentKey()
           
 byte[] getFileAgentToken()
           
 byte[] getFileSessionKey()
           
 byte[] getInitKey()
           
 byte[] getIp()
           
 byte[] getLastLoginIp()
           
 long getLastLoginTime()
           
 byte getLoginMode()
           
 long getLoginTime()
           
 byte[] getLoginToken()
           
 byte[] getPasswordKey()
           
 int getPort()
           
 int getQQ()
           
 byte[] getServerIp()
           
 int getServerPort()
           
 byte[] getSessionKey()
           
 byte getStatus()
           
 byte[] getUnknown03Key()
           
 byte[] getUnknown03Token()
           
 byte[] getUnknown06Key()
           
 byte[] getUnknown06Token()
           
 byte[] getUnknown07Key()
           
 byte[] getUnknown07Token()
           
 byte[] getUnknown08Key()
           
 byte[] getUnknown08Token()
           
 boolean isLoggedIn()
           
 boolean isShowFakeCam()
           
 boolean isUdp()
           
 void setAuthToken(byte[] authToken)
           
 void setClientKey(byte[] clientKey)
           
 void setContactInfo(ContactInfo contactInfo)
           
 void setFileAgentKey(byte[] fileAgentKey)
           
 void setFileAgentToken(byte[] fileAgentToken)
           
 void setFileSessionKey(byte[] fileKey)
           
 void setIp(byte[] ip)
           
 void setLastLoginIp(byte[] lastLoginIp)
           
 void setLastLoginTime(long lastLoginTime)
           
 void setLoggedIn(boolean loggedIn)
           
 void setLoginMode(byte loginMode)
           
 void setLoginTime(long loginTime)
           
 void setLoginToken(byte[] loginToken)
           
 void setPassword(String pwd)
          set user's password, never store in plain text, use Double MD5 to encode.
 void setPort(int port)
           
 void setQQ(int qqNum)
           
 void setServerIp(byte[] serverIp)
           
 void setServerPort(int serverPort)
           
 void setSessionKey(byte[] sessionKey)
           
 void setShowFakeCam(boolean showFakeCam)
           
 void setStatus(byte status)
           
 void setUdp(boolean udp)
           
 void setUnknown03Key(byte[] unknownKey)
           
 void setUnknown03Token(byte[] unknownToken)
           
 void setUnknown06Key(byte[] unknown06Key)
           
 void setUnknown06Token(byte[] unknown06Token)
           
 void setUnknown07Key(byte[] unknown07Key)
           
 void setUnknown07Token(byte[] unknown07Token)
           
 void setUnknown08Key(byte[] unknown08Key)
           
 void setUnknown08Token(byte[] unknown08Token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QQUser

public QQUser(int qqNum,
              String pwd)
Parameters:
qq - QQ number
pwd - password
qq - QQ号
pwd - 密码

QQUser

public QQUser(int qqNum,
              byte[] md5pwd)
Parameters:
qq - QQ number
md5pwd - Double MD5 processed password byte array
qq - QQ号
md5pwd - 经过Double MD5的密码字节数组
Method Detail

getQQ

public int getQQ()
Returns:
Returns the qq.

setQQ

public void setQQ(int qqNum)
Parameters:
qq - The qq to set.

getSessionKey

public byte[] getSessionKey()
Returns:
Returns the sessionKey.

setSessionKey

public void setSessionKey(byte[] sessionKey)
Parameters:
sessionKey - The sessionKey to set.

setPassword

public void setPassword(String pwd)
set user's password, never store in plain text, use Double MD5 to encode.

Parameters:
pwd - password in plain text. 设置用户的密码,不会保存明文形式的密码,立刻用Double MD5算法加密
pwd - 明文形式的密码

getPasswordKey

public byte[] getPasswordKey()
Returns:
password processed with Double MD5.

getIp

public byte[] getIp()
Returns:
Returns the ip.

setIp

public void setIp(byte[] ip)
Parameters:
ip - The ip to set.

getLastLoginIp

public byte[] getLastLoginIp()
Returns:
Returns the lastLoginIp.

setLastLoginIp

public void setLastLoginIp(byte[] lastLoginIp)
Parameters:
lastLoginIp - The lastLoginIp to set.

getPort

public int getPort()
Returns:
Returns the port.

setPort

public void setPort(int port)
Parameters:
port - The port to set.

getServerIp

public byte[] getServerIp()
Returns:
Returns the serverIp.

setServerIp

public void setServerIp(byte[] serverIp)
Parameters:
serverIp - The serverIp to set.

getServerPort

public int getServerPort()
Returns:
Returns the serverPort.

setServerPort

public void setServerPort(int serverPort)
Parameters:
serverPort - The serverPort to set.

getLastLoginTime

public long getLastLoginTime()
Returns:
Returns the lastLoginTime.

setLastLoginTime

public void setLastLoginTime(long lastLoginTime)
Parameters:
lastLoginTime - The lastLoginTime to set.

getLoginTime

public long getLoginTime()
Returns:
Returns the loginTime.

setLoginTime

public void setLoginTime(long loginTime)
Parameters:
loginTime - The loginTime to set.

isLoggedIn

public boolean isLoggedIn()
Returns:
Returns the loggedIn.

setLoggedIn

public void setLoggedIn(boolean loggedIn)
Parameters:
loggedIn - The loggedIn to set.

setLoginMode

public void setLoginMode(byte loginMode)
Parameters:
loginMode - The loginMode to set.

getLoginMode

public byte getLoginMode()
Returns:
Returns the loginMode.

isUdp

public boolean isUdp()
Returns:
Returns the udp.

setUdp

public void setUdp(boolean udp)
Parameters:
udp - The udp to set.

getStatus

public byte getStatus()
Returns:
Returns the status.

setStatus

public void setStatus(byte status)
Parameters:
status - The status to set.

getContactInfo

public ContactInfo getContactInfo()
Returns:
Returns the contactInfo.

setContactInfo

public void setContactInfo(ContactInfo contactInfo)
Parameters:
contactInfo - The contactInfo to set.

getFileSessionKey

public byte[] getFileSessionKey()
Returns:
Returns the fileKey.

setFileSessionKey

public void setFileSessionKey(byte[] fileKey)
Parameters:
fileKey - The fileKey to set.

getFileAgentKey

public byte[] getFileAgentKey()
Returns:
Returns the fileAgentKey.

setFileAgentKey

public void setFileAgentKey(byte[] fileAgentKey)
Parameters:
fileAgentKey - The fileAgentKey to set.

getUnknown03Key

public byte[] getUnknown03Key()
Returns:
Returns the unknownKey.

setUnknown03Key

public void setUnknown03Key(byte[] unknownKey)
Parameters:
unknownKey - The unknownKey to set.

getFileAgentToken

public byte[] getFileAgentToken()
Returns:
Returns the fileAgentToken.

setFileAgentToken

public void setFileAgentToken(byte[] fileAgentToken)
Parameters:
fileAgentToken - The fileAgentToken to set.

getUnknown03Token

public byte[] getUnknown03Token()
Returns:
Returns the unknownToken.

setUnknown03Token

public void setUnknown03Token(byte[] unknownToken)
Parameters:
unknownToken - The unknownToken to set.

isShowFakeCam

public boolean isShowFakeCam()
Returns:
Returns the showFakeCam.

setShowFakeCam

public void setShowFakeCam(boolean showFakeCam)
Parameters:
showFakeCam - The showFakeCam to set.

getClientKey

public byte[] getClientKey()
Returns:
client key

setClientKey

public void setClientKey(byte[] clientKey)
Parameters:
clientKey - client key

getInitKey

public byte[] getInitKey()
Returns:
初始密钥

getLoginToken

public byte[] getLoginToken()
Returns:
Returns the loginToken.

setLoginToken

public void setLoginToken(byte[] loginToken)
Parameters:
loginToken - The loginToken to set.

getUnknown06Key

public byte[] getUnknown06Key()
Returns:
the unknown06Key

setUnknown06Key

public void setUnknown06Key(byte[] unknown06Key)
Parameters:
unknown06Key - the unknown06Key to set

getUnknown07Key

public byte[] getUnknown07Key()
Returns:
the unknown07Key

setUnknown07Key

public void setUnknown07Key(byte[] unknown07Key)
Parameters:
unknown07Key - the unknown07Key to set

getUnknown08Key

public byte[] getUnknown08Key()
Returns:
the unknown08Key

setUnknown08Key

public void setUnknown08Key(byte[] unknown08Key)
Parameters:
unknown08Key - the unknown08Key to set

getUnknown06Token

public byte[] getUnknown06Token()
Returns:
the unknown06Token

setUnknown06Token

public void setUnknown06Token(byte[] unknown06Token)
Parameters:
unknown06Token - the unknown06Token to set

getUnknown07Token

public byte[] getUnknown07Token()
Returns:
the unknown07Token

setUnknown07Token

public void setUnknown07Token(byte[] unknown07Token)
Parameters:
unknown07Token - the unknown07Token to set

getUnknown08Token

public byte[] getUnknown08Token()
Returns:
the unknown08Token

setUnknown08Token

public void setUnknown08Token(byte[] unknown08Token)
Parameters:
unknown08Token - the unknown08Token to set

getAuthToken

public byte[] getAuthToken()
Returns:
the authToken

setAuthToken

public void setAuthToken(byte[] authToken)
Parameters:
authToken - the authToken to set

JML