net.neoremind.fountain.packet
类 ClientAuthPacket
java.lang.Object
net.neoremind.fountain.packet.MysqlPacket
net.neoremind.fountain.packet.ClientAuthPacket
- 所有已实现的接口:
- Serializable, ParsablePacket
public class ClientAuthPacket
- extends MysqlPacket
mysql登录验证包
- 从以下版本开始:
- 2013-7-10
- 作者:
- hexiufeng, zhangxu
- 另请参见:
- Protocol::HandshakeResponse,
序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientAuthPacket
public ClientAuthPacket()
toBytes
public byte[] toBytes()
throws IOException,
NoSuchAlgorithmException
- 转化为bytes
- 返回:
- bytes
- 抛出:
IOException - io异常
NoSuchAlgorithmException - NoSuchAlgorithmException
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getDatabaseName
public String getDatabaseName()
setDatabaseName
public void setDatabaseName(String databaseName)
getCharsetNumber
public byte getCharsetNumber()
setCharsetNumber
public void setCharsetNumber(byte charsetNumber)
getScrumbleBuff
public byte[] getScrumbleBuff()
setScrumbleBuff
public void setScrumbleBuff(byte[] scrumbleBuff)
fromBytes
public void fromBytes(byte[] data)
- 从接口
ParsablePacket 复制的描述
- 解析bytes数据包
- 参数:
data - mysql数据包
Copyright © 2016 neoremind. All rights reserved.