Class StringAttributeValueMappingStrategy
java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.AbstractMappingStrategy<SearchResult>
net.shibboleth.idp.attribute.resolver.dc.ldap.StringAttributeValueMappingStrategy
- All Implemented Interfaces:
SearchResultMappingStrategy
,MappingStrategy<SearchResult>
- Direct Known Subclasses:
StringAttributeValueMappingStrategy
public class StringAttributeValueMappingStrategy
extends AbstractMappingStrategy<SearchResult>
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
(SearchResult results) Maps the given results to a collection ofIdPAttribute
indexed 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 public Map<String,IdPAttribute> map(@Nonnull SearchResult results) throws ResolutionException Maps the given results to a collection ofIdPAttribute
indexed by the attribute's ID.- Specified by:
map
in interfaceMappingStrategy<SearchResult>
- 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
-