public class O365Authenticator extends Object implements ExchangeAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER |
| Constructor and Description |
|---|
O365Authenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate()
Authenticate against Exchange or O365
|
static String |
buildAuthorizeUrl(String tenantId,
String clientId,
String redirectUri,
String username) |
String |
extract(String pattern,
String content) |
org.codehaus.jettison.json.JSONObject |
extractConfig(String content) |
org.codehaus.jettison.json.JSONObject |
extractServerData(String content)
Live.com logon form information
|
URI |
getExchangeUri()
Return default or computed Exchange or O365 url
|
HttpClientAdapter |
getHttpClientAdapter()
Return a pool enabled HttpClientAdapter instance to access O365
|
O365Token |
getToken() |
void |
setPassword(String password) |
void |
setUsername(String username) |
public static String buildAuthorizeUrl(String tenantId, String clientId, String redirectUri, String username) throws IOException
IOExceptionpublic void setUsername(String username)
setUsername in interface ExchangeAuthenticatorpublic void setPassword(String password)
setPassword in interface ExchangeAuthenticatorpublic O365Token getToken()
getToken in interface ExchangeAuthenticatorpublic URI getExchangeUri()
ExchangeAuthenticatorgetExchangeUri in interface ExchangeAuthenticatorpublic HttpClientAdapter getHttpClientAdapter()
getHttpClientAdapter in interface ExchangeAuthenticatorpublic void authenticate()
throws IOException
ExchangeAuthenticatorauthenticate in interface ExchangeAuthenticatorIOException - on errorpublic org.codehaus.jettison.json.JSONObject extractConfig(String content) throws IOException
IOExceptionpublic org.codehaus.jettison.json.JSONObject extractServerData(String content) throws IOException
content - response formIOException - on errorpublic String extract(String pattern, String content) throws IOException
IOExceptionCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.