Interface PrincipalEvalPredicateFactory
- All Known Implementing Classes:
ExactPrincipalEvalPredicateFactory,InexactPrincipalEvalPredicateFactory
public interface PrincipalEvalPredicateFactory
Generates a
Predicate to evaluate a PrincipalSupportingComponent
against a requested form of authentication expressed in terms of a Principal.
The predicate is constructed around a Principal to 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 a PrincipalEvalPredicateFactoryRegistry.
-
Method Summary
Modifier and TypeMethodDescriptiongetPredicate(Principal candidate) Get a predicate to compare a candidatePrincipalobject against aPrincipalSupportingComponentfor a "match", where the definition of a match is implementation-specific.
-
Method Details
-
getPredicate
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
-