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) |
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
IOException
public void setUsername(String username)
setUsername
in interface ExchangeAuthenticator
public void setPassword(String password)
setPassword
in interface ExchangeAuthenticator
public O365Token getToken()
getToken
in interface ExchangeAuthenticator
public URI getExchangeUri()
ExchangeAuthenticator
getExchangeUri
in interface ExchangeAuthenticator
public HttpClientAdapter getHttpClientAdapter()
getHttpClientAdapter
in interface ExchangeAuthenticator
public void authenticate() throws IOException
ExchangeAuthenticator
authenticate
in interface ExchangeAuthenticator
IOException
- on errorpublic org.codehaus.jettison.json.JSONObject extractConfig(String content) throws IOException
IOException
public String extract(String pattern, String content) throws IOException
IOException
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.