Interface SslEngineFactory

    • Method Detail

      • newSslEngine

        SSLEngine newSslEngine​(AsyncHttpClientConfig config,
                               String peerHost,
                               int peerPort)
        Creates a new SSLEngine.
        Parameters:
        config - the client config
        peerHost - the peer hostname
        peerPort - the peer port
        Returns:
        new engine
      • init

        default void init​(AsyncHttpClientConfig config)
                   throws SSLException
        Perform any necessary one-time configuration. This will be called just once before newSslEngine is called for the first time.
        Parameters:
        config - the client config
        Throws:
        SSLException - if initialization fails. If an exception is thrown, the instance will not be used as client creation will fail.
      • destroy

        default void destroy()
        Perform any necessary cleanup.