Class SimpleOIDCSubjectIdentifierCanonicalization.ActivationCondition
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.SimpleOIDCSubjectIdentifierCanonicalization.ActivationCondition
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
- Enclosing class:
- SimpleOIDCSubjectIdentifierCanonicalization
public static class SimpleOIDCSubjectIdentifierCanonicalization.ActivationCondition extends Object implements Predicate<ProfileRequestContext>
A predicate that determines if this action can run or not.
-
-
Field Summary
Fields Modifier and Type Field Description private booleandisabledDisable this C14N no matter how appropriate the context?
-
Constructor Summary
Constructors Constructor Description ActivationCondition(boolean disable)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(ProfileRequestContext profileRequestContext, SubjectCanonicalizationContext c14nContext, boolean duringAction)Helper method that runs either as part of thePredicateor directly from theSimpleOIDCSubjectIdentifierCanonicalization.doPreExecute(ProfileRequestContext, SubjectCanonicalizationContext)method above.booleantest(ProfileRequestContext input)
-
-
-
Constructor Detail
-
ActivationCondition
public ActivationCondition(@ParameterName(name="disabled") boolean disable)
Constructor.- Parameters:
disable- this C14N no matter how appropriate the context
-
-
Method Detail
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
apply
public boolean apply(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull SubjectCanonicalizationContext c14nContext, boolean duringAction)Helper method that runs either as part of thePredicateor directly from theSimpleOIDCSubjectIdentifierCanonicalization.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
-
-