public class O365InteractiveAuthenticator extends Object implements ExchangeAuthenticator
| Constructor and Description |
|---|
O365InteractiveAuthenticator() |
| 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 pool enabled HttpClientAdapter instance to access O365
|
O365Token |
getToken() |
String |
getUsername() |
void |
handleCode(String location)
Extract code from redirect location matching redirectUri
|
static void |
main(String[] argv) |
void |
setPassword(String password) |
void |
setUsername(String username) |
public O365Token getToken()
getToken in interface ExchangeAuthenticatorpublic URI getExchangeUri()
ExchangeAuthenticatorgetExchangeUri in interface ExchangeAuthenticatorpublic String getUsername()
public void setUsername(String username)
setUsername in interface ExchangeAuthenticatorpublic void setPassword(String password)
setPassword in interface ExchangeAuthenticatorpublic HttpClientAdapter getHttpClientAdapter()
getHttpClientAdapter in interface ExchangeAuthenticatorpublic void authenticate()
throws IOException
ExchangeAuthenticatorauthenticate in interface ExchangeAuthenticatorIOException - on errorpublic void handleCode(String location)
location - redirect locationpublic static void main(String[] argv)
Copyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.