public class O365DeviceCodeAuthenticator extends Object implements ExchangeAuthenticator
| Modifier and Type | Class and Description |
|---|---|
protected static class |
O365DeviceCodeAuthenticator.DeviceCode |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER |
| Constructor and Description |
|---|
O365DeviceCodeAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate()
Authenticate against Exchange or O365
|
URI |
getExchangeUri()
Return default or computed Exchange or O365 url
|
HttpClientAdapter |
getHttpClientAdapter()
Return a new HttpClientAdapter instance with pooling enabled for ExchangeSession
|
O365Token |
getToken() |
static void |
main(String[] argv) |
void |
setPassword(String password) |
void |
setUsername(String username) |
public void setUsername(String username)
setUsername in interface ExchangeAuthenticatorpublic void setPassword(String password)
setPassword in interface ExchangeAuthenticatorpublic void authenticate()
throws IOException
ExchangeAuthenticatorauthenticate in interface ExchangeAuthenticatorIOException - on errorpublic O365Token getToken() throws IOException
getToken in interface ExchangeAuthenticatorIOExceptionpublic URI getExchangeUri()
ExchangeAuthenticatorgetExchangeUri in interface ExchangeAuthenticatorpublic HttpClientAdapter getHttpClientAdapter()
ExchangeAuthenticatorgetHttpClientAdapter in interface ExchangeAuthenticatorpublic static void main(String[] argv) throws IOException
IOExceptionCopyright © 2001–2026 MickaĆ«l Guessant. All rights reserved.