Also I did eventually try setting the Authenticator using setDefault() method
and this was called and I was able to set the credentials using this method.
class NtlmAuthenticator extends Authenticator {
String user;
String password;
public NtlmAuthenticator(String user, String password)
{
super()
this.user = user;
this.password = password;
}
@Override
public PasswordAuthentication getPasswordAuthentication () {
return new PasswordAuthentication (user,
password.toCharArray());
}
}
NtlmAuthenticator ntlm = new NtlmAuthenticator(username, password)
Authenticator.setDefault(ntlm)
Also note, I tried this while on JDK 1.7.0_03 not a version of 1.6.x. I'm
not sure why it did not work on 1.6, maybe the support for NTLM v2 with
session is not fully supported in 1.6?
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Client-NTLM-Authentication-with-SharePoint-Server-tp5598272p5600481.html
Sent from the cxf-user mailing list archive at Nabble.com.