Class IntegraSSLSocketFactory

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

    public class IntegraSSLSocketFactory
    extends java.lang.Object
    implements org.apache.http.conn.socket.LayeredConnectionSocketFactory

    Class that represents a custom SSL Sockect Factory for HTTP Client.

    Project:

    Platform for detection and validation of certificates recognized in European TSL.

    Version:
    1.2, 18/04/2022.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegraSSLSocketFactory​(javax.net.ssl.SSLContext sslContextParam)
      Constructor method for the class IntegraSSLSocketFactory.java.
    • 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

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

      • IntegraSSLSocketFactory

        public IntegraSSLSocketFactory​(javax.net.ssl.SSLContext sslContextParam)
        Constructor method for the class IntegraSSLSocketFactory.java.
        Parameters:
        sslContextParam - SSL context.
    • Method Detail

      • 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
        See Also:
        ConnectionSocketFactory.createSocket(org.apache.http.protocol.HttpContext)
      • 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
        See Also:
        ConnectionSocketFactory.connectSocket(int, java.net.Socket, org.apache.http.HttpHost, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.protocol.HttpContext)
      • 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,
                                                   java.net.UnknownHostException
        Specified by:
        createLayeredSocket in interface org.apache.http.conn.socket.LayeredConnectionSocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException
        See Also:
        LayeredConnectionSocketFactory.createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.protocol.HttpContext)