public class ExchangeCredentialsInitializationService extends Object implements IExchangeCredentialsInitializationService
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFS_IMPERSONATION_PASSWORD |
static String |
PREFS_IMPERSONATION_USERNAME |
static String |
PREFS_NTDOMAIN |
| Constructor and Description |
|---|
ExchangeCredentialsInitializationService() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.auth.Credentials |
createNTCredentials(String ntlmDomain,
String username,
String password) |
String |
getImpersonatedAccountId(javax.portlet.PortletRequest request)
Calculate the account ID string of the user whose account is being accessed if Exchange
Impersonation is being used, else null if not using Exchange Impersonation.
|
String |
getNtlmDomain(javax.portlet.PortletRequest request)
Return the configured NTLM Domain if set.
|
void |
initialize(javax.portlet.PortletRequest request)
Perform some action.
|
void |
setEnabled(boolean enabled)
For unit testing.
|
void |
setMailAttribute(String mailAttribute)
Set the name of the user attribute used for retrieving the user's email address.
|
void |
setNtlmDomain(String ntlmDomain)
Set the domain to use NTLM authentication.
|
void |
setPasswordAttribute(String passwordAttribute)
Set the name of the user attribute to be used for retrieving the Exchange authentication
password from the portlet UserInfo map.
|
void |
setUsernameAttribute(String usernameAttribute)
Set the name of the user attribute to be used for retrieving the Exchange authentication
username from the portlet UserInfo map.
|
boolean |
usesExchangeImpersonation(javax.portlet.PortletRequest request)
Returns true if this portlet is configured to use Exchange Impersonation, else false.
|
public static final String PREFS_NTDOMAIN
public static final String PREFS_IMPERSONATION_USERNAME
public static final String PREFS_IMPERSONATION_PASSWORD
public ExchangeCredentialsInitializationService()
public void setEnabled(boolean enabled)
public void setUsernameAttribute(String usernameAttribute)
usernameAttribute - public void setPasswordAttribute(String passwordAttribute)
passwordAttribute - public void setMailAttribute(String mailAttribute)
mailAttribute - name of the user attribute to obtain the user's email address from.public String getNtlmDomain(javax.portlet.PortletRequest request)
getNtlmDomain in interface IExchangeCredentialsInitializationServicerequest - Portlet Requestpublic void setNtlmDomain(String ntlmDomain)
ntlmDomain - NT Domainpublic void initialize(javax.portlet.PortletRequest request)
IInitializationServiceinitialize in interface IInitializationServicerequest - user's portlet requestpublic boolean usesExchangeImpersonation(javax.portlet.PortletRequest request)
IExchangeCredentialsInitializationServiceusesExchangeImpersonation in interface IExchangeCredentialsInitializationServicerequest - Portlet Requestpublic String getImpersonatedAccountId(javax.portlet.PortletRequest request)
getImpersonatedAccountId in interface IExchangeCredentialsInitializationServicerequest - Portlet RequestCopyright © 2018 Apereo. All Rights Reserved.