Class 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 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: 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 interface Socks5PrivateAuthRequest
      Returns:
      the private authentication token
    • toString

      public String toString()
      Overrides:
      toString in class Object