Class DefaultSslEngineFactory

    • Constructor Detail

      • DefaultSslEngineFactory

        public DefaultSslEngineFactory()
    • Method Detail

      • init

        public void init​(AsyncHttpClientConfig config)
                  throws SSLException
        Description copied from interface: SslEngineFactory
        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

        public void destroy()
        Description copied from interface: SslEngineFactory
        Perform any necessary cleanup.
      • configureSslContextBuilder

        protected io.netty.handler.ssl.SslContextBuilder configureSslContextBuilder​(io.netty.handler.ssl.SslContextBuilder builder)
        The last step of configuring the SslContextBuilder used to create an SslContext when no context is provided in the AsyncHttpClientConfig. This defaults to no-op and is intended to be overridden as needed.
        Parameters:
        builder - builder with normal configuration applied
        Returns:
        builder to be used to build context (can be the same object as the input)