Custom NTLMv2 authenticator for Exchange Web Services (EWS) applications
I maintain a couple of applications using Exchange via EWS (Exchange Web
Services and jax-ws client), and the first one was deployed more than a year
ago. Everything was working well until the Exchange admins turned off basic
authentication (used a java.net.Authenticator) in favor of ntlm v2. Now the
applications don't work.
I have spent the last day or so reviewing the Metro documentation.
Unfortunately there is no explicit discussion of my particular issue, eg.
creating a custom authenticator.
I know how to make a straight authenticated https call to the web service
using httpclient 4.2.
What is the best way to attack the problem?
1. Can I create a handler to manage the authentication or the
2. Can I create a custom implementation of a WSHTTPConnection? If so, how do
I register it?
3. Better approach?