microsoft.exchange.webservices.data.credential.ExchangeCredentials Java Examples
The following examples show how to use
microsoft.exchange.webservices.data.credential.ExchangeCredentials.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExchangeServiceBase.java From ews-java-api with MIT License | 5 votes |
/** * Sets the credential used to authenticate with the Exchange Web Services. * Setting the Credentials property automatically sets the * UseDefaultCredentials to false. * * @param credentials Exchange credential. */ public void setCredentials(ExchangeCredentials credentials) { this.credentials = credentials; this.useDefaultCredentials = false; // Reset the httpContext, to remove any existing authentication cookies from subsequent request initializeHttpContext(); }
Example #2
Source File: ExchangeServiceBase.java From ews-java-api with MIT License | 2 votes |
/** * Gets the credential used to authenticate with the Exchange Web Services. * * @return credential */ public ExchangeCredentials getCredentials() { return this.credentials; }