Class PrincipalInResultPredicate
java.lang.Object
net.shibboleth.idp.authn.context.logic.AbstractAuthenticationResultPredicate
net.shibboleth.idp.authn.context.logic.PrincipalInResultPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
Condition that checks for the presence of one or more
Principal instances
in a Subject in any of the AuthenticationResult instances evaluated
by the parent class.- Since:
- 5.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoMatch(ProfileRequestContext profileRequestContext, AuthenticationResult result) Match returns true iff at least one of the candidates is found in this result'sSubject.voidsetPrincipals(Collection<Principal> prins) Sets the principals to check for.Methods inherited from class net.shibboleth.idp.authn.context.logic.AbstractAuthenticationResultPredicate
getAuthenticationResults, getIncludedFlows, isIncludeIntermediateResults, setIncludedFlows, setIncludeIntermediateResults, test
-
Field Details
-
principals
Principals to check for.
-
-
Constructor Details
-
PrincipalInResultPredicate
public PrincipalInResultPredicate()Constructor.
-
-
Method Details
-
setPrincipals
Sets the principals to check for.- Parameters:
prins- principals to check for
-
doMatch
protected boolean doMatch(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationResult result) Match returns true iff at least one of the candidates is found in this result'sSubject.- Specified by:
doMatchin classAbstractAuthenticationResultPredicate- Parameters:
profileRequestContext- profile request contextresult- result to evaluate- Returns:
- as above
-