Class MfSSLSocketFactory

  • All Implemented Interfaces:
    org.apache.http.conn.socket.ConnectionSocketFactory, org.apache.http.conn.socket.LayeredConnectionSocketFactory

    public final class MfSSLSocketFactory
    extends java.lang.Object
    implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
    A ssl socket factory that obtains the keystore from the current configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket connectSocket​(int connectTimeout, java.net.Socket sock, org.apache.http.HttpHost host, java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)  
      java.net.Socket createLayeredSocket​(java.net.Socket socket, java.lang.String target, int port, org.apache.http.protocol.HttpContext context)  
      java.net.Socket createSocket​(org.apache.http.protocol.HttpContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MfSSLSocketFactory

        public MfSSLSocketFactory()
    • Method Detail

      • createLayeredSocket

        public java.net.Socket createLayeredSocket​(java.net.Socket socket,
                                                   java.lang.String target,
                                                   int port,
                                                   org.apache.http.protocol.HttpContext context)
                                            throws java.io.IOException
        Specified by:
        createLayeredSocket in interface org.apache.http.conn.socket.LayeredConnectionSocketFactory
        Throws:
        java.io.IOException
      • createSocket

        public java.net.Socket createSocket​(org.apache.http.protocol.HttpContext context)
                                     throws java.io.IOException
        Specified by:
        createSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Throws:
        java.io.IOException
      • connectSocket

        public java.net.Socket connectSocket​(int connectTimeout,
                                             java.net.Socket sock,
                                             org.apache.http.HttpHost host,
                                             java.net.InetSocketAddress remoteAddress,
                                             java.net.InetSocketAddress localAddress,
                                             org.apache.http.protocol.HttpContext context)
                                      throws java.io.IOException
        Specified by:
        connectSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Throws:
        java.io.IOException