Class SocksProxyConstants


  • public class SocksProxyConstants
    extends Object
    SocksProxyConstants.java - SOCKS proxy constants.
    Since:
    MINA 2.0.0-M3
    Author:
    Apache MINA Project
    • Field Detail

      • 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
      • GSSAPI_AUTH

        public static final byte GSSAPI_AUTH
        GSSAPI 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
    • 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