These are chat archives for OfficeDev/ews-java-api

21st
Jul 2015
elarbi
@elarbi
Jul 21 2015 14:52
Hi,
I need to know if a login,password pair is correct. Could I use
                    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
                    ExchangeCredentials credentials = new WebCredentials(LOGIN_WINDOWS, PASSWORD);
                    credentials.preAuthenticate();
André Behrens
@serious6
Jul 21 2015 17:48
@elarbi dont think there is something implemented like preAuthentication. Looking at the code declares there is just this method which does nothing. If you want to have this enabled please open an issue for it. My suggestion would also be to declare this method as abstract in ExchangeCredentials and keep Implementations to the inherited classes.
if you want to check the credentials yourself try to bind to a WellKnownFolder