Interface TlsSocketStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.net.ssl.SSLSocket upgrade​(java.net.Socket socket, java.lang.String target, int port, java.lang.Object attachment, org.apache.hc.core5.http.protocol.HttpContext context)
      Upgrades the given plain socket and executes the TLS handshake over it.
    • Method Detail

      • upgrade

        javax.net.ssl.SSLSocket upgrade​(java.net.Socket socket,
                                        java.lang.String target,
                                        int port,
                                        java.lang.Object attachment,
                                        org.apache.hc.core5.http.protocol.HttpContext context)
                                 throws java.io.IOException
        Upgrades the given plain socket and executes the TLS handshake over it.
        Parameters:
        socket - the existing plain socket
        target - the name of the target host.
        port - the port to connect to on the target host.
        context - the actual HTTP context.
        attachment - connect request attachment.
        Returns:
        socket upgraded to TLS.
        Throws:
        java.io.IOException