Class ResolutionLabelPredicate
- java.lang.Object
-
- net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<ProfileRequestContext,String>
-
- net.shibboleth.idp.attribute.resolver.logic.ResolutionLabelPredicate
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Predicate<ProfileRequestContext>
public class ResolutionLabelPredicate extends StrategyIndirectedPredicate<ProfileRequestContext,String>
Predicate that evaluates aProfileRequestContextby looking for an attribute resolution label that matches one of a designated set or a generic predicate. The ID is obtained from a lookup function, by default from aAttributeResolutionContextchild of the profile request context.- Since:
- 4.1.0
-
-
Constructor Summary
Constructors Constructor Description ResolutionLabelPredicate(Collection<String> candidates)Constructor.ResolutionLabelPredicate(Predicate<String> pred)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ResolutionLabelPredicatebyList(Collection<String> candidates)Factory Method to avoid type-coercion warnings from Spring.(package private) static ResolutionLabelPredicatebyPredicate(Predicate<String> pred)Factory Method to avoid type-coercion warnings fromSpring.-
Methods inherited from class net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate
forCollection, forPredicate, test
-
-
-
-
Constructor Detail
-
ResolutionLabelPredicate
public ResolutionLabelPredicate(@Nonnull @NonnullElements Collection<String> candidates)
Constructor.- Parameters:
candidates- hardwired set of values to check against
-
-
Method Detail
-
byList
static ResolutionLabelPredicate byList(@Nonnull @NonnullElements Collection<String> candidates)
Factory Method to avoid type-coercion warnings from Spring.- Parameters:
candidates- hardwired set of values to check against- Returns:
- the result of calling
ResolutionLabelPredicate(Collection)
-
byPredicate
static ResolutionLabelPredicate byPredicate(@Nonnull Predicate<String> pred)
Factory Method to avoid type-coercion warnings fromSpring.- Parameters:
pred- generalized predicate- Returns:
- the result of calling
ResolutionLabelPredicate(Predicate)
-
-