Class Socks5PrivateAuthStatus

  • All Implemented Interfaces:
    Comparable<Socks5PrivateAuthStatus>

    public final class Socks5PrivateAuthStatus
    extends Object
    implements Comparable<Socks5PrivateAuthStatus>
    The status of a SOCKS5 private authentication response.

    RFC 1928 reserves method codes 0x80-0xFE for private authentication methods but does not specify the format of their subnegotiation. This class provides standard status codes for the private authentication response that follow the pattern established by the username/password authentication method in RFC 1929.

    See Also:
    RFC 1928 Section 3, RFC 1929
    • Constructor Detail

      • Socks5PrivateAuthStatus

        public Socks5PrivateAuthStatus​(int byteValue,
                                       String name)
        Creates a new SOCKS5 private authentication status.
        Parameters:
        byteValue - The byte value representing the authentication status (0x00 for success, 0xFF for failure, or custom values)
        name - The descriptive name of this status, must not be null
        Throws:
        NullPointerException - if the name is null