Package davmail.exchange.auth
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 Summary
Modifier and TypeMethodDescriptionvoidAuthenticate against Exchange or O365Return default or computed Exchange or O365 urlReturn a new HttpClientAdapter instance with pooling enabled for ExchangeSessiongetToken()voidsetPassword(String password) voidsetUsername(String username)
-
Method Details
-
setUsername
-
setPassword
-
authenticate
Authenticate against Exchange or O365- Throws:
IOException- on error
-
getToken
- 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
-