Package net.shibboleth.idp.authn.impl
Class SimpleSubjectCanonicalization.ActivationCondition
java.lang.Object
net.shibboleth.idp.authn.impl.SimpleSubjectCanonicalization.ActivationCondition
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
- Enclosing class:
- SimpleSubjectCanonicalization
public static class SimpleSubjectCanonicalization.ActivationCondition
extends Object
implements Predicate<ProfileRequestContext>
A predicate that determines if this action can run or not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(ProfileRequestContext profileRequestContext, SubjectCanonicalizationContext c14nContext, boolean duringAction) Helper method that runs either as part of thePredicate
or directly from theSimpleSubjectCanonicalization.doPreExecute(ProfileRequestContext, SubjectCanonicalizationContext)
method above.boolean
test
(ProfileRequestContext input)
-
Constructor Details
-
ActivationCondition
public ActivationCondition()
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<ProfileRequestContext>
-
apply
public boolean apply(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext, boolean duringAction) Helper method that runs either as part of thePredicate
or directly from theSimpleSubjectCanonicalization.doPreExecute(ProfileRequestContext, SubjectCanonicalizationContext)
method above.- Parameters:
profileRequestContext
- the current profile request contextc14nContext
- the current c14n contextduringAction
- true iff the method is run from the action above- Returns:
- true iff the action can operate successfully on the candidate contexts
-