I don't think there is any Swing or thick client app in these discussions that has done this. Mermeister talked about it, but no code example.
Discussion boards are littered with threads of people trying to do this. People reference this or that "working code", but the working code doesn't work for many people, judging by comments. The treads wind down with people giving up, usually
stuck on GSSContext.initSecContext.
So, I thought, what if my thick client could create an "invisible browser" session, that would call waffle-negotiate ? Maybe that is naive. Anyway, here is my code and its results.
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("http://localhost:8080/waffle-negotiate/");
if (method.getStatusCode() == HttpStatus.SC_OK)
String response = method.getResponseBodyAsString();
System.out.println("Response = " + response);
INFO: ntlm authentication scheme selected
Apr 20, 2011 10:17:58 AM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: No credentials available for NTLM <any realm>@localhost:8080