Class SocksAuthRequest
- java.lang.Object
-
- org.jboss.netty.handler.codec.socks.SocksMessage
-
- org.jboss.netty.handler.codec.socks.SocksRequest
-
- org.jboss.netty.handler.codec.socks.SocksAuthRequest
-
public final class SocksAuthRequest extends SocksRequest
An socks auth request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksRequest
SocksRequest.SocksRequestType
-
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
-
-
Constructor Summary
Constructors Constructor Description SocksAuthRequest(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeAsByteBuf(ChannelBuffer channelBuffer)
Encode socks message into its byte representation and write it into byteBufString
getPassword()
Returns password that needs to be validatedString
getUsername()
Returns username that needs to be authenticated-
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksRequest
getSocksRequestType
-
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
getMessageType, getProtocolVersion
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
Returns username that needs to be authenticated- Returns:
- username that needs to be authenticated
-
getPassword
public String getPassword()
Returns password that needs to be validated- Returns:
- password that needs to be validated
-
encodeAsByteBuf
public void encodeAsByteBuf(ChannelBuffer channelBuffer) throws Exception
Description copied from class:SocksMessage
Encode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBuf
in classSocksMessage
- Throws:
Exception
- See Also:
ChannelBuffer
-
-