Package io.netty.handler.codec.socksx.v5
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 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, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()intcompareTo(Socks5AuthMethod o)booleanequals(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.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.
-
-
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
-
valueOf
public static Socks5AuthMethod valueOf(byte b)
-
byteValue
public byte byteValue()
-
compareTo
public int compareTo(Socks5AuthMethod o)
- Specified by:
compareToin interfaceComparable<Socks5AuthMethod>
-
-