Interface PrincipalEvalPredicateFactory
-
- All Known Implementing Classes:
ExactPrincipalEvalPredicateFactory,InexactPrincipalEvalPredicateFactory
public interface PrincipalEvalPredicateFactoryGenerates aPredicateto evaluate aPrincipalSupportingComponentagainst a requested form of authentication expressed in terms of aPrincipal.The predicate is constructed around a
Principalto compare in an implementation-specific manner against the candidate component. A given factory produces predicates that implement a particular set of matching rules. Factories are accessed via aPrincipalEvalPredicateFactoryRegistry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrincipalEvalPredicategetPredicate(Principal candidate)Get a predicate to compare a candidatePrincipalobject against aPrincipalSupportingComponentfor a "match", where the definition of a match is implementation-specific.
-
-
-
Method Detail
-
getPredicate
@Nonnull PrincipalEvalPredicate getPredicate(@Nonnull Principal candidate)
Get a predicate to compare a candidatePrincipalobject against aPrincipalSupportingComponentfor a "match", where the definition of a match is implementation-specific.- Parameters:
candidate- aPrincipalobject to evaluate- Returns:
- a
PrincipalEvalPredicateimplementing custom matching rules
-
-