Class StringAttributeValueMappingStrategy
java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.AbstractMappingStrategy<SearchResponse>
net.shibboleth.idp.attribute.resolver.dc.ldap.StringAttributeValueMappingStrategy
- All Implemented Interfaces:
SearchResultMappingStrategy,MappingStrategy<SearchResponse>
public class StringAttributeValueMappingStrategy
extends AbstractMappingStrategy<SearchResponse>
implements SearchResultMappingStrategy
A simple
SearchResultMappingStrategy that iterates over all result entries and includes all attribute values
as strings.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmap(SearchResponse results) Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.AbstractMappingStrategy
getResultRenamingMap, isMultipleResultsAnError, isNoResultAnError, setMultipleResultsAnError, setNoResultAnError, setResultRenamingMap
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
StringAttributeValueMappingStrategy
public StringAttributeValueMappingStrategy()
-
-
Method Details
-
map
@Nullable @Unmodifiable @NotLive public Map<String,IdPAttribute> map(@Nonnull SearchResponse results) throws ResolutionException Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.- Specified by:
mapin interfaceMappingStrategy<SearchResponse>- Parameters:
results- to map- Returns:
- the mapped attributes or null if none exist
- Throws:
ResolutionException- thrown if there is a problem reading data or mapping it
-