We had a similar problem. The main problem for us was that the implementation of the GSS-API fails when using Windows UAC, and we decided to use it Waffle.
Waffle - JNA SSPI. SSO Waffle, sun.net.www.protocol.http.NegotiatorImpl:
package sun.net.www.protocol.http;
import java.io.IOException;
import waffle.windows.auth.impl.WindowsSecurityContextImpl;
public class NegotiatorImpl extends Negotiator {
private String serviceName;
public NegotiatorImpl(HttpCallerInfo hci) throws IOException {
this.serviceName = "HTTP/" + hci.host.toLowerCase();
}
@Override
public byte[] firstToken() throws IOException {
return WindowsSecurityContextImpl.getCurrent("Negotiate", serviceName).getToken();
}
@Override
public byte[] nextToken(byte[] in) throws IOException {
return new byte[0];
}
}
JAR Waffle JNA JAR . /jre/lib/endorsed JVM. Java, JVM, JVM Negotiator.