Class Socks5AuthMethod

    • Constructor Detail

      • Socks5AuthMethod

        public Socks5AuthMethod​(int byteValue)
      • Socks5AuthMethod

        public Socks5AuthMethod​(int byteValue,
                                String name)
    • Method Detail

      • isPrivateMethod

        public static boolean isPrivateMethod​(byte b)
        Returns whether the authentication method code is in the private methods range (0x80-0xFE) as defined by RFC 1928 section 3.
        Parameters:
        b - The authentication method code
        Returns:
        true if the code is in the private methods range
      • byteValue

        public byte byteValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object