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 byteBASIC_AUTHBasic authenticationstatic byteBASIC_AUTH_SUBNEGOTIATION_VERSIONBasic authentication subnegociation versionstatic byteDOMAIN_NAME_ADDRESS_TYPEDomain name address typestatic byteESTABLISH_TCPIP_BINDTCPIP bindstatic byteESTABLISH_TCPIP_STREAMTCPIP streamstatic byteESTABLISH_UDP_ASSOCIATEUDP associatestatic byte[]FAKE_IPInvalid IP used in SOCKS 4a protocol to specify that the client can't resolve the destination host's domain name.static byteGSSAPI_AUTHGSSAPI authenticationstatic byteGSSAPI_AUTH_SUBNEGOTIATION_VERSIONGSSAPI authentication subnegociation versionstatic byteGSSAPI_MSG_TYPEGSSAPI message typestatic byteIPV4_ADDRESS_TYPEIPV4 address typesstatic byteIPV6_ADDRESS_TYPEIPV6 address typestatic StringKERBEROS_V5_OIDKerberos V5 OIDstatic StringMS_KERBEROS_V5_OIDMicrosoft Kerberos V5 OIDstatic byteNO_ACCEPTABLE_AUTH_METHODNon acceptable method authenticationstatic byteNO_AUTHNo authenticationstatic StringNTLMSSP_OIDMicrosoft NTLM security support provider.static intSOCKS_4_RESPONSE_SIZEThe size of a server to client response in a SOCKS4/4a negotiation.static byteSOCKS_VERSION_4Socks V4static byteSOCKS_VERSION_5Socks V5static intSOCKS5_AUTH_STEPAuthentication stepstatic intSOCKS5_GREETING_STEPGreeting stepstatic intSOCKS5_REQUEST_STEPRequest stepstatic byte[]SUPPORTED_AUTH_METHODSSupported authentication methodsstatic byteTERMINATORterminatorstatic byteV4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMEDRequest failed identity not confirmedstatic byteV4_REPLY_REQUEST_FAILED_NO_IDENTDRequest failed not identifiedstatic byteV4_REPLY_REQUEST_GRANTEDRequest grantedstatic byteV4_REPLY_REQUEST_REJECTED_OR_FAILEDRequest rejected or failedstatic byteV5_REPLY_ADDRESS_TYPE_NOT_SUPPORTEDAddress type not supportedstatic byteV5_REPLY_COMMAND_NOT_SUPPORTEDCommand not supportedstatic byteV5_REPLY_CONNECTION_REFUSEDConnection refusedstatic byteV5_REPLY_GENERAL_FAILUREGeneral failurestatic byteV5_REPLY_HOST_UNREACHABLEHost unreachablestatic byteV5_REPLY_NETWORK_UNREACHABLENetwork unreachablestatic byteV5_REPLY_NOT_ALLOWEDNot allowedstatic byteV5_REPLY_SUCCEEDEDSuccessstatic byteV5_REPLY_TTL_EXPIREDTTL expired
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetReplyCodeAsString(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
-
-