public final class ExchangeSessionFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkConfig()
Send a request to Exchange server to check current settings.
|
static ExchangeSession |
getInstance(ExchangeSession currentSession,
String userName,
String password)
Get a non expired session.
|
static ExchangeSession |
getInstance(String userName,
String password)
Create authenticated Exchange session
|
static ExchangeSession |
getInstance(String baseUrl,
String userName,
String password)
Create authenticated Exchange session
|
static String |
getUserPassword(String userName)
Get user password from session pool for SASL authentication
|
static void |
shutdown()
Reset config check status and clear session pool.
|
public static ExchangeSession getInstance(String userName, String password) throws IOException
userName - user loginpassword - user passwordIOException - on errorpublic static ExchangeSession getInstance(String baseUrl, String userName, String password) throws IOException
baseUrl - OWA base URLuserName - user loginpassword - user passwordIOException - on errorpublic static ExchangeSession getInstance(ExchangeSession currentSession, String userName, String password) throws IOException
currentSession - current sessionuserName - user loginpassword - user passwordIOException - on errorpublic static void checkConfig()
throws IOException
IOException - if unable to access Exchange serverpublic static String getUserPassword(String userName)
userName - Exchange user namepublic static void shutdown()
Copyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.