Class SocksProxyConstants
java.lang.Object
org.apache.mina.proxy.handlers.socks.SocksProxyConstants
SocksProxyConstants.java - SOCKS proxy constants.
- Since:
- MINA 2.0.0-M3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteBasic authenticationstatic final byteBasic authentication subnegociation versionstatic final byteDomain name address typestatic final byteTCPIP bindstatic final byteTCPIP streamstatic final byteUDP associatestatic final byte[]Invalid IP used in SOCKS 4a protocol to specify that the client can't resolve the destination host's domain name.static final byteGSSAPI authenticationstatic final byteGSSAPI authentication subnegociation versionstatic final byteGSSAPI message typestatic final byteIPV4 address typesstatic final byteIPV6 address typestatic final StringKerberos V5 OIDstatic final StringMicrosoft Kerberos V5 OIDstatic final byteNon acceptable method authenticationstatic final byteNo authenticationstatic final StringMicrosoft NTLM security support provider.static final intThe size of a server to client response in a SOCKS4/4a negotiation.static final byteSocks V4static final byteSocks V5static final intAuthentication stepstatic final intGreeting stepstatic final intRequest stepstatic final byte[]Supported authentication methodsstatic final byteterminatorstatic final byteRequest failed identity not confirmedstatic final byteRequest failed not identifiedstatic final byteRequest grantedstatic final byteRequest rejected or failedstatic final byteAddress type not supportedstatic final byteCommand not supportedstatic final byteConnection refusedstatic final byteGeneral failurestatic final byteHost unreachablestatic final byteNetwork unreachablestatic final byteNot allowedstatic final byteSuccessstatic final byteTTL expired -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetReplyCodeAsString(byte code) Return the string associated with the specified reply code.
-
Field Details
-
SOCKS_VERSION_4
public static final byte SOCKS_VERSION_4Socks V4- See Also:
-
SOCKS_VERSION_5
public static final byte SOCKS_VERSION_5Socks V5- See Also:
-
TERMINATOR
public static final byte TERMINATORterminator- See Also:
-
SOCKS_4_RESPONSE_SIZE
public static final int SOCKS_4_RESPONSE_SIZEThe size of a server to client response in a SOCKS4/4a negotiation.- See Also:
-
FAKE_IP
public static final byte[] FAKE_IPInvalid 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_STREAMTCPIP stream- See Also:
-
ESTABLISH_TCPIP_BIND
public static final byte ESTABLISH_TCPIP_BINDTCPIP bind- See Also:
-
ESTABLISH_UDP_ASSOCIATE
public static final byte ESTABLISH_UDP_ASSOCIATEUDP associate- See Also:
-
V4_REPLY_REQUEST_GRANTED
public static final byte V4_REPLY_REQUEST_GRANTEDRequest granted- See Also:
-
V4_REPLY_REQUEST_REJECTED_OR_FAILED
public static final byte V4_REPLY_REQUEST_REJECTED_OR_FAILEDRequest rejected or failed- See Also:
-
V4_REPLY_REQUEST_FAILED_NO_IDENTD
public static final byte V4_REPLY_REQUEST_FAILED_NO_IDENTDRequest failed not identified- See Also:
-
V4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMED
public static final byte V4_REPLY_REQUEST_FAILED_ID_NOT_CONFIRMEDRequest failed identity not confirmed- See Also:
-
V5_REPLY_SUCCEEDED
public static final byte V5_REPLY_SUCCEEDEDSuccess- See Also:
-
V5_REPLY_GENERAL_FAILURE
public static final byte V5_REPLY_GENERAL_FAILUREGeneral failure- See Also:
-
V5_REPLY_NOT_ALLOWED
public static final byte V5_REPLY_NOT_ALLOWEDNot allowed- See Also:
-
V5_REPLY_NETWORK_UNREACHABLE
public static final byte V5_REPLY_NETWORK_UNREACHABLENetwork unreachable- See Also:
-
V5_REPLY_HOST_UNREACHABLE
public static final byte V5_REPLY_HOST_UNREACHABLEHost unreachable- See Also:
-
V5_REPLY_CONNECTION_REFUSED
public static final byte V5_REPLY_CONNECTION_REFUSEDConnection refused- See Also:
-
V5_REPLY_TTL_EXPIRED
public static final byte V5_REPLY_TTL_EXPIREDTTL expired- See Also:
-
V5_REPLY_COMMAND_NOT_SUPPORTED
public static final byte V5_REPLY_COMMAND_NOT_SUPPORTEDCommand not supported- See Also:
-
V5_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
public static final byte V5_REPLY_ADDRESS_TYPE_NOT_SUPPORTEDAddress type not supported- See Also:
-
IPV4_ADDRESS_TYPE
public static final byte IPV4_ADDRESS_TYPEIPV4 address types- See Also:
-
DOMAIN_NAME_ADDRESS_TYPE
public static final byte DOMAIN_NAME_ADDRESS_TYPEDomain name address type- See Also:
-
IPV6_ADDRESS_TYPE
public static final byte IPV6_ADDRESS_TYPEIPV6 address type- See Also:
-
SOCKS5_GREETING_STEP
public static final int SOCKS5_GREETING_STEPGreeting step- See Also:
-
SOCKS5_AUTH_STEP
public static final int SOCKS5_AUTH_STEPAuthentication step- See Also:
-
SOCKS5_REQUEST_STEP
public static final int SOCKS5_REQUEST_STEPRequest step- See Also:
-
NO_AUTH
public static final byte NO_AUTHNo authentication- See Also:
-
GSSAPI_AUTH
public static final byte GSSAPI_AUTHGSSAPI authentication- See Also:
-
BASIC_AUTH
public static final byte BASIC_AUTHBasic authentication- See Also:
-
NO_ACCEPTABLE_AUTH_METHOD
public static final byte NO_ACCEPTABLE_AUTH_METHODNon acceptable method authentication- See Also:
-
SUPPORTED_AUTH_METHODS
public static final byte[] SUPPORTED_AUTH_METHODSSupported authentication methods -
BASIC_AUTH_SUBNEGOTIATION_VERSION
public static final byte BASIC_AUTH_SUBNEGOTIATION_VERSIONBasic authentication subnegociation version- See Also:
-
GSSAPI_AUTH_SUBNEGOTIATION_VERSION
public static final byte GSSAPI_AUTH_SUBNEGOTIATION_VERSIONGSSAPI authentication subnegociation version- See Also:
-
GSSAPI_MSG_TYPE
public static final byte GSSAPI_MSG_TYPEGSSAPI message type- See Also:
-
KERBEROS_V5_OID
-
MS_KERBEROS_V5_OID
-
NTLMSSP_OID
-
-
Constructor Details
-
SocksProxyConstants
private SocksProxyConstants()
-
-
Method Details
-
getReplyCodeAsString
Return the string associated with the specified reply code.- Parameters:
code- the reply code- Returns:
- the reply string
-