- All Implemented Interfaces:
public class InexactPrincipalEvalPredicateFactory extends Object implements PrincipalEvalPredicateFactory
PrincipalEvalPredicateFactorythat implements inexact matching of principals, based on an arbitrary set of "matches" configured at runtime.
Matching is based on string equality between two principals via the
This component implements essentially arbitrary comparison rules by being unaware of the actual semantics implied by a match. For example, a given instance of the component could be configured with rules for matching principals that are "at least as good as" or "better than" a candidate value, but the component doesn't know or care about that meaning.
Nested Class Summary
Nested Classes Modifier and Type Class Description
private classImplementation of an inexact-matching predicate.
Constructors Constructor Description
Modifier and Type Method Description
(package private) Multimap<String,String>
()Get the matching rules to apply.
Map<String,Collection<String>> rules)(Set the matching rules to apply.
matchingRulesRules for matching.
getMatchingRulesGet the matching rules to apply.
- a mutable multimap of the matching rules to apply
setMatchingRulesSet the matching rules to apply.
The input is a map of sets for bean compatibility.
rules- matching rules
getPredicateGet a predicate to compare a candidate
Principalobject against a
PrincipalSupportingComponentfor a "match", where the definition of a match is implementation-specific.