Class DefaultSocks5PrivateAuthRequest
java.lang.Object
io.netty.handler.codec.socksx.AbstractSocksMessage
io.netty.handler.codec.socksx.v5.AbstractSocks5Message
io.netty.handler.codec.socksx.v5.DefaultSocks5PrivateAuthRequest
- All Implemented Interfaces:
DecoderResultProvider, SocksMessage, Socks5Message, Socks5PrivateAuthRequest
public final class DefaultSocks5PrivateAuthRequest
extends AbstractSocks5Message
implements Socks5PrivateAuthRequest
The default
Socks5PrivateAuthRequest implementation.
For custom private authentication protocols, you should implement the Socks5PrivateAuthRequest
interface directly. Custom protocols should also implement their own encoder/decoder to handle the wire format.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocks5PrivateAuthRequest(byte[] privateAuthToken) Creates a new instance with the specified token. -
Method Summary
Methods inherited from class AbstractSocks5Message
versionMethods inherited from class AbstractSocksMessage
decoderResult, setDecoderResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface SocksMessage
version
-
Constructor Details
-
DefaultSocks5PrivateAuthRequest
public DefaultSocks5PrivateAuthRequest(byte[] privateAuthToken) Creates a new instance with the specified token.- Parameters:
privateAuthToken- the private authentication token
-
-
Method Details
-
privateToken
public byte[] privateToken()Description copied from interface:Socks5PrivateAuthRequestReturns the private token of this request.For custom subnegotiation protocols, this could be extended by adding additional methods in a subinterface.
- Specified by:
privateTokenin interfaceSocks5PrivateAuthRequest- Returns:
- the private authentication token
-
toString
-