public final class SocksAuthRequest extends SocksRequest
SocksAuthResponse}
,
SocksAuthRequestDecoder}
SocksRequest.SocksRequestType
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
构造器和说明 |
---|
SocksAuthRequest(java.lang.String username,
java.lang.String password) |
限定符和类型 | 方法和说明 |
---|---|
void |
encodeAsByteBuf(ChannelBuffer channelBuffer)
Encode socks message into its byte representation and write it into byteBuf
|
java.lang.String |
getPassword()
Returns password that needs to be validated
|
java.lang.String |
getUsername()
Returns username that needs to be authenticated
|
getSocksRequestType
getMessageType, getProtocolVersion
public SocksAuthRequest(java.lang.String username, java.lang.String password)
public java.lang.String getUsername()
public java.lang.String getPassword()
public void encodeAsByteBuf(ChannelBuffer channelBuffer) throws java.lang.Exception
SocksMessage
encodeAsByteBuf
在类中 SocksMessage
java.lang.Exception
ChannelBuffer