Class Socks5AuthMethod
java.lang.Object
io.netty.handler.codec.socksx.v5.Socks5AuthMethod
- All Implemented Interfaces:
Comparable<Socks5AuthMethod>
The authentication method of SOCKS5.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Socks5AuthMethodstatic final Socks5AuthMethodstatic final Socks5AuthMethodstatic final Socks5AuthMethodIndicates that the server does not accept any authentication methods the client proposed. -
Constructor Summary
ConstructorsConstructorDescriptionSocks5AuthMethod(int byteValue) Socks5AuthMethod(int byteValue, String name) -
Method Summary
Modifier and TypeMethodDescriptionbyteintbooleaninthashCode()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.toString()static Socks5AuthMethodvalueOf(byte b)
-
Field Details
-
NO_AUTH
-
GSSAPI
-
PASSWORD
-
UNACCEPTED
Indicates that the server does not accept any authentication methods the client proposed.
-
-
Constructor Details
-
Socks5AuthMethod
public Socks5AuthMethod(int byteValue) -
Socks5AuthMethod
-
-
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
-
byteValue
public byte byteValue() -
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Socks5AuthMethod>
-
toString
-