[jcifs] Using CXF with NTLM/JCIFS authentication as well as SSL/HTTPS
Pink, Simon (AGCS)
simon.pink at allianz.com
Thu Dec 3 10:25:39 MST 2009
Thanks Mike, that's brilliant news about Java/JDK6 support. It seems that NTLM support is now cross-platform, and you can specify the user to authenticate with.
Some relevant links:
Or more authoritively:
Hopefully someone else finds this helpful.
Subject: Re: [jcifs] Using CXF with NTLM/JCIFS authentication as well as SSL/HTTPS
On Thu, Dec 3, 2009 at 6:24 AM, Pink, Simon (AGCS)
<simon.pink at allianz.com> wrote:
> I cannot seem to get jcifs NTLM working with SSL/HTTPS. I get the following
> In a nutshell, CXF is trying to decorate the
> javax.net.ssl.HttpsURLConnection.getSSLSocketFactory method - but NTLM has
> replaced the https connection with its own handler: NtlmHttpURLConnection
> which doesn't have this method, hence the exception. Is it actually possible
JCIFS' HTTP client is simply a wrapper for the builtin client so it is
now obsolete because Sun's builtin client has NTLM capability
including NTLMv2 (not sure about on all platforms) and additionally
I'm not sure it even works anymore because the builtin client
intercepts the headers used for communicating authentication tokens.
Finally, all HTTP related code is going to be removed from JCIFS.
Michael B Allen
Java Active Directory Integration
More information about the jCIFS