public HttpClientFactory copy() throws TikaConfigException {
        HttpClientFactory cp = new HttpClientFactory();
        cp.setAllowedHostsForRedirect(new HashSet<>(allowedHostsForRedirect));
        cp.setAuthScheme(authScheme);
        cp.setConnectTimeout(connectTimeout);
        cp.setCredentialsAESEncrypted(credentialsAESEncrypted);
        cp.setDisableContentCompression(disableContentCompression);
        cp.setKeepAliveOnBadKeepAliveValueMs(keepAliveOnBadKeepAliveValueMs);
        cp.setMaxConnectionsPerRoute(maxConnectionsPerRoute);
        cp.setMaxConnections(maxConnections);
        cp.setNtDomain(ntDomain);
        cp.setPassword(password);
        cp.setProxyHost(proxyHost);
        cp.setProxyPort(proxyPort);
        cp.setRequestTimeout(requestTimeout);
        cp.setSocketTimeout(socketTimeout);
        return cp;
    }
only basic and ntlm are supported

@param authScheme
tika-pipes/tika-httpclient-commons/src/main/java/org/apache/tika/client/HttpClientFactory.java