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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringpasswordprivate static SocksSubnegotiationVersionSUBNEGOTIATION_VERSIONprivate java.lang.Stringusername
-
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
-
-
-
-
Field Detail
-
SUBNEGOTIATION_VERSION
private static final SocksSubnegotiationVersion SUBNEGOTIATION_VERSION
-
username
private final java.lang.String username
-
password
private final java.lang.String password
-
-
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
-
-