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(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeAsByteBuf(io.netty.buffer.ByteBuf byteBuf)Stringpassword()Returns password that needs to be validatedStringusername()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 String username()
Returns username that needs to be authenticated- Returns:
- username that needs to be authenticated
-
password
public String password()
Returns password that needs to be validated- Returns:
- password that needs to be validated
-
encodeAsByteBuf
public void encodeAsByteBuf(io.netty.buffer.ByteBuf byteBuf)
- Specified by:
encodeAsByteBufin classSocksMessage
-
-