Class Socks5AuthMethod

java.lang.Object
io.netty.handler.codec.socksx.v5.Socks5AuthMethod
All Implemented Interfaces:
Comparable<Socks5AuthMethod>

public class Socks5AuthMethod extends Object implements Comparable<Socks5AuthMethod>
The authentication method of SOCKS5.
  • Field Details

  • Constructor Details

    • Socks5AuthMethod

      public Socks5AuthMethod(int byteValue)
    • Socks5AuthMethod

      public Socks5AuthMethod(int byteValue, String name)
  • Method Details

    • 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
    • valueOf

      public static Socks5AuthMethod valueOf(byte b)
    • byteValue

      public byte byteValue()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Socks5AuthMethod o)
      Specified by:
      compareTo in interface Comparable<Socks5AuthMethod>
    • toString

      public String toString()
      Overrides:
      toString in class Object