[jcifs] Using CXF with NTLM/JCIFS authentication as well as SSL/HTTPS
Michael B Allen
ioplex at gmail.com
Thu Dec 3 09:23:54 MST 2009
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
> exception:
> java.lang.NoSuchMethodException:
> jcifs.http.NtlmHttpURLConnection.getSSLSocketFactory()
>
> 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.
Mike
--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/
More information about the jCIFS
mailing list