public class LDAPDataConnector extends AbstractSearchDataConnector<ExecutableSearchFilter>
DataConnector that queries an LDAP in order to retrieve attribute
data.| Modifier and Type | Field and Description |
|---|---|
private ConnectionFactory |
connectionFactory
Factory for retrieving LDAP connections.
|
private boolean |
defaultMappingStrategy
Whether the default mapping strategy is being used.
|
private boolean |
defaultValidator
Whether the default validator is being used.
|
private org.slf4j.Logger |
log
Class logger.
|
private SearchExecutor |
searchExecutor
For executing LDAP searches.
|
| Constructor and Description |
|---|
LDAPDataConnector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
ConnectionFactory |
getConnectionFactory()
Gets the connection factory for retrieving
Connections. |
SearchExecutor |
getSearchExecutor()
Gets the search executor for executing searches.
|
protected Map<String,IdPAttribute> |
retrieveAttributes(ExecutableSearchFilter filter)
Attempts to retrieve attributes from the LDAP.
|
void |
setConnectionFactory(ConnectionFactory factory)
Sets the connection factory for retrieving
Connections. |
void |
setMappingStrategy(MappingStrategy strategy)
Sets the strategy for mapping from search results to a collection of
IdPAttributes. |
void |
setSearchExecutor(SearchExecutor executor)
Sets the search executor for executing searches.
|
void |
setValidator(Validator validator)
Sets the validator used to validate this connector.
|
doDataConnectorResolve, getExecutableSearchBuilder, getMappingStrategy, getResultsCache, getValidator, setExecutableSearchBuilder, setResultsCachedoResolve, getFailoverDataConnectorId, getLastFail, getLogPrefix, getNoRetryDelay, setFailoverDataConnectorId, setLastFail, setNoRetryDelaydoDestroy, equals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetId@Nonnull private final org.slf4j.Logger log
private ConnectionFactory connectionFactory
private SearchExecutor searchExecutor
private boolean defaultValidator
private boolean defaultMappingStrategy
public ConnectionFactory getConnectionFactory()
Connections.Connectionspublic void setConnectionFactory(@Nonnull ConnectionFactory factory)
Connections.factory - connection factory for retrieving Connectionspublic SearchExecutor getSearchExecutor()
public void setSearchExecutor(@Nonnull SearchExecutor executor)
executor - search executor for executing searchespublic void setValidator(@Nonnull Validator validator)
setValidator in class AbstractSearchDataConnector<ExecutableSearchFilter>validator - used to validate this connectorpublic void setMappingStrategy(@Nonnull MappingStrategy strategy)
IdPAttributes.setMappingStrategy in class AbstractSearchDataConnector<ExecutableSearchFilter>strategy - strategy for mapping from search results to a collection of IdPAttributesprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractSearchDataConnector<ExecutableSearchFilter>ComponentInitializationException@Nullable protected Map<String,IdPAttribute> retrieveAttributes(ExecutableSearchFilter filter) throws ResolutionException
retrieveAttributes in class AbstractSearchDataConnector<ExecutableSearchFilter>filter - search filter used to retrieve data from the LDAPResolutionException - thrown if there is a problem retrieving data from the LDAPCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.