class HttpsFactory {

    public CloseableHttpClient createSecureHttpClient() {
        Registry<ConnectionSocketFactory> socketFactoryRegistry;
        RegistryBuilder<ConnectionSocketFactory> socketFactoryRegistryBuilder = RegistryBuilder
                .<ConnectionSocketFactory>create().register("http", PlainConnectionSocketFactory.getSocketFactory());

        socketFactoryRegistryBuilder.register("https", createSslSocketFactory());
        socketFactoryRegistry = socketFactoryRegistryBuilder.build();

        PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(
                Objects.requireNonNull(socketFactoryRegistry));
        return HttpClientBuilder.create().setConnectionManager(connectionManager).disableCookieManagement()
                .disableAuthCaching().build();
    }

    public  HttpsFactory(HttpsConfig httpsConfig);

}