[jcifs] Using CXF with NTLM/JCIFS authentication as well as SSL/HTTPS
Michael B Allen
ioplex at gmail.com
Thu Dec 3 11:25:42 MST 2009
Well don't declare victory yet. Sun has a bit of a muddled history in
this area. Their Kerberos implementation has had problems and again it
is not crystal clear how complete their NTLM implementation is or how
exactly to control it as it is directly woven into the HTTP client.
On Thu, Dec 3, 2009 at 12:25 PM, Pink, Simon (AGCS)
<simon.pink at allianz.com> wrote:
> 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.
> Kind Regards,
> -----Original Message-----
> 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
> Hi Simon,
> 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
Michael B Allen
Java Active Directory Integration
More information about the jCIFS