Interface PrincipalEvalPredicate
- All Superinterfaces:
Predicate<PrincipalSupportingComponent>
- All Known Implementing Classes:
ExactPrincipalEvalPredicateFactory.ExactMatchPredicate,InexactPrincipalEvalPredicateFactory.InexactMatchPredicate
A
Predicate to evaluate a Principal that represents a requested form of
authentication against a set of principals supported by a PrincipalSupportingComponent.
The predicate contains an additional method that makes available the actual
Principal object that satisfied the predicate. In concrete terms, this
represents the actual authentication method that was performed.
-
Method Summary
Modifier and TypeMethodDescriptionGet thePrincipalobject from the evaluatedPrincipalSupportingComponentthat actually satisfied the predicate, if any.
-
Method Details
-
getMatchingPrincipal
Get thePrincipalobject from the evaluatedPrincipalSupportingComponentthat actually satisfied the predicate, if any.- Returns:
- a custom principal, or null
-