public final class SocksAuthRequest extends SocksRequest
SocksAuthResponse
,
SocksAuthRequestDecoder
Modifier and Type | Field and Description |
---|---|
private static java.nio.charset.CharsetEncoder |
asciiEncoder |
private java.lang.String |
password |
private static SocksSubnegotiationVersion |
SUBNEGOTIATION_VERSION |
private java.lang.String |
username |
Constructor and Description |
---|
SocksAuthRequest(java.lang.String username,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
encodeAsByteBuf(ByteBuf byteBuf) |
java.lang.String |
password()
Returns password that needs to be validated
|
java.lang.String |
username()
Returns username that needs to be authenticated
|
requestType
protocolVersion, type
private static final java.nio.charset.CharsetEncoder asciiEncoder
private static final SocksSubnegotiationVersion SUBNEGOTIATION_VERSION
private final java.lang.String username
private final java.lang.String password
public SocksAuthRequest(java.lang.String username, java.lang.String password)
public java.lang.String username()
public java.lang.String password()
public void encodeAsByteBuf(ByteBuf byteBuf)
encodeAsByteBuf
in class SocksMessage