Class SSLClient


  • public class SSLClient
    extends Client
    This class provides functions to do HTTPS related operations.
    • Constructor Detail

      • SSLClient

        protected SSLClient​(org.apache.http.impl.client.DefaultHttpClient client)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Client
      • open

        public static SSLClient open​(java.lang.String host)
                              throws java.io.IOException
        Get ssl client on DEFAULT_HTTPS_PORT
        Parameters:
        host - The https host url
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static SSLClient open​(java.lang.String host,
                                     int port)
                              throws java.io.IOException
        Get ssl client
        Parameters:
        host - The https host url
        port - The https host port
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static SSLClient open​(java.lang.String host,
                                     int port,
                                     java.lang.String tlsVersion)
                              throws java.io.IOException
        Get ssl client with specific TLS version
        Parameters:
        host - The https host url
        port - The https host port
        tlsVersion - The TLS version like TLS, TLSv1, TLSv1.1, TLSv1.2
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static SSLClient open​(java.lang.String host,
                                     java.lang.String user,
                                     java.lang.String pass)
                              throws java.io.IOException
        Get ssl client on DEFAULT_HTTPS_PORT with credentials
        Parameters:
        host - The https host url
        user - The https host auth username
        pass - The https host auth password
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static SSLClient open​(java.lang.String host,
                                     int port,
                                     java.lang.String user,
                                     java.lang.String pass)
                              throws java.io.IOException
        Get ssl client with credentials
        Parameters:
        host - The https host url
        port - The https host port
        user - The https host auth username
        pass - The https host auth password
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static SSLClient open​(java.lang.String host,
                                     int port,
                                     java.lang.String user,
                                     java.lang.String pass,
                                     java.lang.String tlsVersion)
                              throws java.io.IOException
        Get ssl client with credentials and specific TLS version
        Parameters:
        host - The https host url
        port - The https host port
        user - The https host auth username
        pass - The https host auth password
        tlsVersion - The TLS version like TLS, TLSv1, TLSv1.1, TLSv1.2
        Returns:
        SSLClient
        Throws:
        java.io.IOException - If some other I/O error occurs