Package io.netty.handler.codec.socksx.v5
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 defaultSocks5PrivateAuthRequest
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
Constructors Constructor Description DefaultSocks5PrivateAuthRequest(byte[] privateAuthToken)
Creates a new instance with the specified token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
privateToken()
Returns the private token of this request.java.lang.String
toString()
-
Methods inherited from class io.netty.handler.codec.socksx.v5.AbstractSocks5Message
version
-
Methods inherited from class io.netty.handler.codec.socksx.AbstractSocksMessage
decoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.socksx.SocksMessage
version
-
-
-
-
Method Detail
-
privateToken
public byte[] privateToken()
Description copied from interface:Socks5PrivateAuthRequest
Returns the private token of this request.For custom subnegotiation protocols, this could be extended by adding additional methods in a subinterface.
- Specified by:
privateToken
in interfaceSocks5PrivateAuthRequest
- Returns:
- the private authentication token
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-