Interface ExchangeAuthenticator

All Known Implementing Classes:
ExchangeFormAuthenticator, O365Authenticator, O365DeviceCodeAuthenticator, O365InteractiveAuthenticator, O365ManualAuthenticator, O365StoredTokenAuthenticator

public interface ExchangeAuthenticator
Common interface for all Exchange and O365 authenticators. Implement this interface to build custom authenticators for unsupported Exchange architecture
  • Method Details

    • setUsername

      void setUsername(String username)
    • setPassword

      void setPassword(String password)
    • authenticate

      void authenticate() throws IOException
      Authenticate against Exchange or O365
      Throws:
      IOException - on error
    • getToken

      O365Token getToken() throws IOException
      Throws:
      IOException
    • getExchangeUri

      URI getExchangeUri()
      Return default or computed Exchange or O365 url
      Returns:
      target url
    • getHttpClientAdapter

      HttpClientAdapter getHttpClientAdapter()
      Return a new HttpClientAdapter instance with pooling enabled for ExchangeSession
      Returns:
      HttpClientAdapter instance