Class Socks5PrivateAuthResponseDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public final class Socks5PrivateAuthResponseDecoder extends ByteToMessageDecoder
Decodes a single Socks5PrivateAuthResponse from the inbound ByteBufs. On successful decode, this decoder will forward the received data to the next handler, so that other handler can remove or replace this decoder later. On failed decode, this decoder will discard the received data, so that other handler closes the connection later.

The default format follows a simple structure:

  • 1 byte: version (must be 1)
  • 1 byte: status (0x00 for success, 0xFF for failure)

For custom private authentication protocols, you can: