Interface PrincipalEvalPredicate
-
- All Superinterfaces:
Predicate<PrincipalSupportingComponent>
- All Known Implementing Classes:
ExactPrincipalEvalPredicateFactory.ExactMatchPredicate
,InexactPrincipalEvalPredicateFactory.InexactMatchPredicate
public interface PrincipalEvalPredicate extends Predicate<PrincipalSupportingComponent>
APredicate
to evaluate aPrincipal
that 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
Principal
object 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 Principal
getMatchingPrincipal()
Get thePrincipal
object from the evaluatedPrincipalSupportingComponent
that actually satisfied the predicate, if any.
-
-
-
Method Detail
-
getMatchingPrincipal
@Nullable Principal getMatchingPrincipal()
Get thePrincipal
object from the evaluatedPrincipalSupportingComponent
that actually satisfied the predicate, if any.- Returns:
- a custom principal, or null
-
-