Class SocksProxyConstants
- java.lang.Object
-
- org.apache.mina.proxy.handlers.socks.SocksProxyConstants
-
public class SocksProxyConstants extends Object
SocksProxyConstants.java - SOCKS proxy constants.- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static byte
BASIC_AUTH
Basic authenticationstatic byte
BASIC_AUTH_SUBNEGOTIATION_VERSION
Basic authentication subnegociation versionstatic byte
DOMAIN_NAME_ADDRESS_TYPE
Domain name address typestatic byte
ESTABLISH_TCPIP_BIND
TCPIP bindstatic byte
ESTABLISH_TCPIP_STREAM
TCPIP streamstatic byte
ESTABLISH_UDP_ASSOCIATE
UDP associatestatic byte[]
FAKE_IP
Invalid IP used in SOCKS 4a protocol to specify that the client can't resolve the destination host's domain name.static byte
GSSAPI_AUTH
GSSAPI authenticationstatic byte
GSSAPI_AUTH_SUBNEGOTIATION_VERSION
GSSAPI authentication subnegociation versionstatic byte
GSSAPI_MSG_TYPE
GSSAPI message typestatic byte
IPV4_ADDRESS_TYPE
IPV4 address typesstatic byte
IPV6_ADDRESS_TYPE
IPV6 address typestatic String
KERBEROS_V5_OID
Kerberos V5 OIDstatic String
MS_KERBEROS_V5_OID
Microsoft Kerberos V5 OIDstatic byte
NO_ACCEPTABLE_AUTH_METHOD
Non acceptable method authenticationstatic byte
NO_AUTH
No authenticationstatic String
NTLMSSP_OID
Microsoft NTLM security support provider.static int
SOCKS_4_RESPONSE_SIZE
The size of a server to client response in a SOCKS4/4a negotiation.static byte
SOCKS_VERSION_4
Socks V4static byte
SOCKS_VERSION_5
Socks V5static int
SOCKS5_AUTH_STEP
Authentication stepstatic int
SOCKS5_GREETING_STEP
Greeting stepstatic int
SOCKS5_REQUEST_STEP
Request stepstatic byte[]
SUPPORTED_AUTH_METHODS
Supported authentication methodsstatic byte
TERMINATOR
terminatorstatic byte
V4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMED
Request failed identity not confirmedstatic byte
V4_REPLY_REQUEST_FAILED_NO_IDENTD
Request failed not identifiedstatic byte
V4_REPLY_REQUEST_GRANTED
Request grantedstatic byte
V4_REPLY_REQUEST_REJECTED_OR_FAILED
Request rejected or failedstatic byte
V5_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
Address type not supportedstatic byte
V5_REPLY_COMMAND_NOT_SUPPORTED
Command not supportedstatic byte
V5_REPLY_CONNECTION_REFUSED
Connection refusedstatic byte
V5_REPLY_GENERAL_FAILURE
General failurestatic byte
V5_REPLY_HOST_UNREACHABLE
Host unreachablestatic byte
V5_REPLY_NETWORK_UNREACHABLE
Network unreachablestatic byte
V5_REPLY_NOT_ALLOWED
Not allowedstatic byte
V5_REPLY_SUCCEEDED
Successstatic byte
V5_REPLY_TTL_EXPIRED
TTL expired
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getReplyCodeAsString(byte code)
Return the string associated with the specified reply code.
-
-
-
Field Detail
-
SOCKS_VERSION_4
public static final byte SOCKS_VERSION_4
Socks V4- See Also:
- Constant Field Values
-
SOCKS_VERSION_5
public static final byte SOCKS_VERSION_5
Socks V5- See Also:
- Constant Field Values
-
TERMINATOR
public static final byte TERMINATOR
terminator- See Also:
- Constant Field Values
-
SOCKS_4_RESPONSE_SIZE
public static final int SOCKS_4_RESPONSE_SIZE
The size of a server to client response in a SOCKS4/4a negotiation.- See Also:
- Constant Field Values
-
FAKE_IP
public static final byte[] FAKE_IP
Invalid IP used in SOCKS 4a protocol to specify that the client can't resolve the destination host's domain name.
-
ESTABLISH_TCPIP_STREAM
public static final byte ESTABLISH_TCPIP_STREAM
TCPIP stream- See Also:
- Constant Field Values
-
ESTABLISH_TCPIP_BIND
public static final byte ESTABLISH_TCPIP_BIND
TCPIP bind- See Also:
- Constant Field Values
-
ESTABLISH_UDP_ASSOCIATE
public static final byte ESTABLISH_UDP_ASSOCIATE
UDP associate- See Also:
- Constant Field Values
-
V4_REPLY_REQUEST_GRANTED
public static final byte V4_REPLY_REQUEST_GRANTED
Request granted- See Also:
- Constant Field Values
-
V4_REPLY_REQUEST_REJECTED_OR_FAILED
public static final byte V4_REPLY_REQUEST_REJECTED_OR_FAILED
Request rejected or failed- See Also:
- Constant Field Values
-
V4_REPLY_REQUEST_FAILED_NO_IDENTD
public static final byte V4_REPLY_REQUEST_FAILED_NO_IDENTD
Request failed not identified- See Also:
- Constant Field Values
-
V4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMED
public static final byte V4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMED
Request failed identity not confirmed- See Also:
- Constant Field Values
-
V5_REPLY_SUCCEEDED
public static final byte V5_REPLY_SUCCEEDED
Success- See Also:
- Constant Field Values
-
V5_REPLY_GENERAL_FAILURE
public static final byte V5_REPLY_GENERAL_FAILURE
General failure- See Also:
- Constant Field Values
-
V5_REPLY_NOT_ALLOWED
public static final byte V5_REPLY_NOT_ALLOWED
Not allowed- See Also:
- Constant Field Values
-
V5_REPLY_NETWORK_UNREACHABLE
public static final byte V5_REPLY_NETWORK_UNREACHABLE
Network unreachable- See Also:
- Constant Field Values
-
V5_REPLY_HOST_UNREACHABLE
public static final byte V5_REPLY_HOST_UNREACHABLE
Host unreachable- See Also:
- Constant Field Values
-
V5_REPLY_CONNECTION_REFUSED
public static final byte V5_REPLY_CONNECTION_REFUSED
Connection refused- See Also:
- Constant Field Values
-
V5_REPLY_TTL_EXPIRED
public static final byte V5_REPLY_TTL_EXPIRED
TTL expired- See Also:
- Constant Field Values
-
V5_REPLY_COMMAND_NOT_SUPPORTED
public static final byte V5_REPLY_COMMAND_NOT_SUPPORTED
Command not supported- See Also:
- Constant Field Values
-
V5_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
public static final byte V5_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
Address type not supported- See Also:
- Constant Field Values
-
IPV4_ADDRESS_TYPE
public static final byte IPV4_ADDRESS_TYPE
IPV4 address types- See Also:
- Constant Field Values
-
DOMAIN_NAME_ADDRESS_TYPE
public static final byte DOMAIN_NAME_ADDRESS_TYPE
Domain name address type- See Also:
- Constant Field Values
-
IPV6_ADDRESS_TYPE
public static final byte IPV6_ADDRESS_TYPE
IPV6 address type- See Also:
- Constant Field Values
-
SOCKS5_GREETING_STEP
public static final int SOCKS5_GREETING_STEP
Greeting step- See Also:
- Constant Field Values
-
SOCKS5_AUTH_STEP
public static final int SOCKS5_AUTH_STEP
Authentication step- See Also:
- Constant Field Values
-
SOCKS5_REQUEST_STEP
public static final int SOCKS5_REQUEST_STEP
Request step- See Also:
- Constant Field Values
-
NO_AUTH
public static final byte NO_AUTH
No authentication- See Also:
- Constant Field Values
-
GSSAPI_AUTH
public static final byte GSSAPI_AUTH
GSSAPI authentication- See Also:
- Constant Field Values
-
BASIC_AUTH
public static final byte BASIC_AUTH
Basic authentication- See Also:
- Constant Field Values
-
NO_ACCEPTABLE_AUTH_METHOD
public static final byte NO_ACCEPTABLE_AUTH_METHOD
Non acceptable method authentication- See Also:
- Constant Field Values
-
SUPPORTED_AUTH_METHODS
public static final byte[] SUPPORTED_AUTH_METHODS
Supported authentication methods
-
BASIC_AUTH_SUBNEGOTIATION_VERSION
public static final byte BASIC_AUTH_SUBNEGOTIATION_VERSION
Basic authentication subnegociation version- See Also:
- Constant Field Values
-
GSSAPI_AUTH_SUBNEGOTIATION_VERSION
public static final byte GSSAPI_AUTH_SUBNEGOTIATION_VERSION
GSSAPI authentication subnegociation version- See Also:
- Constant Field Values
-
GSSAPI_MSG_TYPE
public static final byte GSSAPI_MSG_TYPE
GSSAPI message type- See Also:
- Constant Field Values
-
KERBEROS_V5_OID
public static final String KERBEROS_V5_OID
Kerberos V5 OID- See Also:
- Constant Field Values
-
MS_KERBEROS_V5_OID
public static final String MS_KERBEROS_V5_OID
Microsoft Kerberos V5 OID- See Also:
- Constant Field Values
-
NTLMSSP_OID
public static final String NTLMSSP_OID
Microsoft NTLM security support provider.- See Also:
- Constant Field Values
-
-
Method Detail
-
getReplyCodeAsString
public static final String getReplyCodeAsString(byte code)
Return the string associated with the specified reply code.- Parameters:
code
- the reply code- Returns:
- the reply string
-
-