简体   繁体   中英

Apache HTTP Client 4.2.5 NTLM Integrated Authentication

Can anyone explain to me how (if it's possible) to setup integrated NTLM authentication when calling some URI via the Apache HTTP Client in Java? I have successfully used it when supplying the NTCredentials, but I also need the ability to call additional web resources with whatever user the Java application is running as. This works fine for HTTPUrlConnection (it automatically negotiates as the running user), but I haven't found a way to make it work with the Apache HTTP Client.

Thanks!

You can use CloseableHttpClient httpclient = WinHttpClients.createDefault(); from the httpcomponents library 4.5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM