Package io.netty.handler.codec.socksx.v5
Class Socks5AuthMethod
- java.lang.Object
-
- io.netty.handler.codec.socksx.v5.Socks5AuthMethod
-
- All Implemented Interfaces:
java.lang.Comparable<Socks5AuthMethod>
public class Socks5AuthMethod extends java.lang.Object implements java.lang.Comparable<Socks5AuthMethod>
The authentication method of SOCKS5.
-
-
Field Summary
Fields Modifier and Type Field Description static Socks5AuthMethodGSSAPIstatic Socks5AuthMethodNO_AUTHstatic Socks5AuthMethodPASSWORDstatic Socks5AuthMethodUNACCEPTEDIndicates that the server does not accept any authentication methods the client proposed.
-
Constructor Summary
Constructors Constructor Description Socks5AuthMethod(int byteValue)Socks5AuthMethod(int byteValue, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()intcompareTo(Socks5AuthMethod o)booleanequals(java.lang.Object obj)inthashCode()static booleanisPrivateMethod(byte b)Returns whether the authentication method code is in the private methods range (0x80-0xFE) as defined by RFC 1928 section 3.java.lang.StringtoString()static Socks5AuthMethodvalueOf(byte b)
-
-
-
Field Detail
-
NO_AUTH
public static final Socks5AuthMethod NO_AUTH
-
GSSAPI
public static final Socks5AuthMethod GSSAPI
-
PASSWORD
public static final Socks5AuthMethod PASSWORD
-
UNACCEPTED
public static final Socks5AuthMethod UNACCEPTED
Indicates that the server does not accept any authentication methods the client proposed.
-
-
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
-
valueOf
public static Socks5AuthMethod valueOf(byte b)
-
byteValue
public byte byteValue()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(Socks5AuthMethod o)
- Specified by:
compareToin interfacejava.lang.Comparable<Socks5AuthMethod>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-