Class SocksAuthRequest
java.lang.Object
io.netty.handler.codec.socks.SocksMessage
io.netty.handler.codec.socks.SocksRequest
io.netty.handler.codec.socks.SocksAuthRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.lang.Stringprivate static final SocksSubnegotiationVersionprivate final java.lang.String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeAsByteBuf(ByteBuf byteBuf) java.lang.Stringpassword()Returns password that needs to be validatedjava.lang.Stringusername()Returns username that needs to be authenticatedMethods inherited from class SocksRequest
requestTypeMethods inherited from class SocksMessage
protocolVersion, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SUBNEGOTIATION_VERSION
-
username
private final java.lang.String username -
password
private final java.lang.String password
-
-
Constructor Details
-
SocksAuthRequest
public SocksAuthRequest(java.lang.String username, java.lang.String password)
-
-
Method Details
-
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
- Specified by:
encodeAsByteBufin classSocksMessage
-