Package io.netty.handler.codec.socks
Class SocksAuthRequest
- java.lang.Object
-
- io.netty.handler.codec.socks.SocksMessage
-
- io.netty.handler.codec.socks.SocksRequest
-
- io.netty.handler.codec.socks.SocksAuthRequest
-
public final class SocksAuthRequest extends SocksRequest
An socks auth request.- See Also:
SocksAuthResponse,SocksAuthRequestDecoder
-
-
Constructor Summary
Constructors Constructor Description SocksAuthRequest(java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeAsByteBuf(ByteBuf byteBuf)java.lang.Stringpassword()Returns password that needs to be validatedjava.lang.Stringusername()Returns username that needs to be authenticated-
Methods inherited from class io.netty.handler.codec.socks.SocksRequest
requestType
-
Methods inherited from class io.netty.handler.codec.socks.SocksMessage
protocolVersion, type
-
-
-
-
Method Detail
-
username
public java.lang.String username()
Returns username that needs to be authenticated- Returns:
- username that needs to be authenticated
-
password
public java.lang.String password()
Returns password that needs to be validated- Returns:
- password that needs to be validated
-
encodeAsByteBuf
public void encodeAsByteBuf(ByteBuf byteBuf)
- Specified by:
encodeAsByteBufin classSocksMessage
-
-