Interface PrincipalEvalPredicate
-
- All Superinterfaces:
Predicate<PrincipalSupportingComponent>
- All Known Implementing Classes:
ExactPrincipalEvalPredicateFactory.ExactMatchPredicate,InexactPrincipalEvalPredicateFactory.InexactMatchPredicate
public interface PrincipalEvalPredicate extends Predicate<PrincipalSupportingComponent>
APredicateto evaluate aPrincipalthat represents a requested form of authentication against a set of principals supported by aPrincipalSupportingComponent.The predicate contains an additional method that makes available the actual
Principalobject that satisfied the predicate. In concrete terms, this represents the actual authentication method that was performed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrincipalgetMatchingPrincipal()Get thePrincipalobject from the evaluatedPrincipalSupportingComponentthat actually satisfied the predicate, if any.
-
-
-
Method Detail
-
getMatchingPrincipal
@Nullable Principal getMatchingPrincipal()
Get thePrincipalobject from the evaluatedPrincipalSupportingComponentthat actually satisfied the predicate, if any.- Returns:
- a custom principal, or null
-
-