I am "forcing" the httpclient to do ntlm authentication by using:
PoolingHttpClientConnectionManager connPool connPool = new PoolingHttpClientConnectionManager();
Lookup<AuthSchemeProvider> authProviders = RegistryBuilder.<AuthSchemeProvider>create()
.register(AuthSchemes.NTLM, new NTLMSchemeFactory())
.build();
CloseableHttpClient httpClient = HttpClients.custom().setConnectionManager(connPool).setDefaultAuthSchemeRegistry(authProviders).build();
But, when authenticating to the server, I get an annoying log message "Authentication scheme Negotiate not supported".
How can I get rid of this message?
(This will be running on a linux box, so HttpClient 4.4 JNA support for native authentication won't help.)