These are chat archives for OfficeDev/ews-java-api
A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
service.setImpersonatedUserId(new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "userEmail"));. If you want to know about the differences have a look at the exchange dev blog