Class ValueMap
java.lang.Object
net.shibboleth.idp.attribute.resolver.ad.mapped.impl.ValueMap
- All Implemented Interfaces:
Function<String,
Set<StringAttributeValue>>
Performs many to one mapping of source values to a return value. SourceValue strings may include regular expressions
and the ReturnValue may include back references to capturing groups as supported by
Pattern
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.private String
Return value.private Collection<SourceValue>
Source values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate an incoming attribute value against this value map.Gets the return value.Gets the collection of source values.void
setReturnValue
(String newReturnValue) Sets the return value.void
setSourceValues
(Collection<SourceValue> newValues) Sets the Source values for the mapping.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
returnValue
Return value. -
sourceValues
Source values.
-
-
Constructor Details
-
ValueMap
public ValueMap()Constructor.
-
-
Method Details
-
getReturnValue
Gets the return value.- Returns:
- the return value
-
setReturnValue
Sets the return value.- Parameters:
newReturnValue
- the return value
-
setSourceValues
Sets the Source values for the mapping.- Parameters:
newValues
- functions used to map an input value to an output value
-
getSourceValues
Gets the collection of source values.- Returns:
- the collection of source values
-
apply
Evaluate an incoming attribute value against this value map.- Specified by:
apply
in interfaceFunction<String,
Set<StringAttributeValue>> - Parameters:
attributeValue
- incoming attribute value- Returns:
- set of new values the incoming value mapped to
-