Class ParameterizedExecutableSearchFilterBuilder
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.dc.ldap.AbstractExecutableSearchFilterBuilder
net.shibboleth.idp.attribute.resolver.dc.ldap.ParameterizedExecutableSearchFilterBuilder
- All Implemented Interfaces:
ExecutableSearchBuilder<ExecutableSearchFilter>
,Component
,DestructableComponent
,InitializableComponent
- Direct Known Subclasses:
ParameterizedExecutableSearchFilterBuilder
public class ParameterizedExecutableSearchFilterBuilder
extends AbstractExecutableSearchFilterBuilder
An
ExecutableSearchBuilder
that generates the search filter to
be executed by evaluating a parameterized filter string against the currently resolved attributes within a
AttributeResolutionContext
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild
(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes) Creates an executable search that can be executed against a data source in order to produce results.protected void
void
setSearchFilter
(String filter) Set the filter used for the LDAP search.Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.ldap.AbstractExecutableSearchFilterBuilder
build
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
searchFilter
LDAP search filter.
-
-
Constructor Details
-
ParameterizedExecutableSearchFilterBuilder
public ParameterizedExecutableSearchFilterBuilder()Constructor.
-
-
Method Details
-
setSearchFilter
Set the filter used for the LDAP search.- Parameters:
filter
- used for the LDAP search
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
build
public ExecutableSearchFilter build(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes) throws ResolutionExceptionCreates an executable search that can be executed against a data source in order to produce results.- Parameters:
resolutionContext
- current request contextdependencyAttributes
- made available to the executable search- Returns:
- executable search
- Throws:
ResolutionException
- throw if their is a problem creating the executable search
-