Class IsConsentRequiredPredicate
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Predicate<ProfileRequestContext>
public class IsConsentRequiredPredicate extends Object implements Predicate<ProfileRequestContext>
Predicate that returns whether consent is required by comparing the previous and current consents from the consent context.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,ConsentContext>consentContextLookupStrategyConsent context lookup strategy.private Function<ProfileRequestContext,ConsentFlowDescriptor>consentFlowDescriptorLookupStrategyConsent flow descriptor lookup strategy.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description IsConsentRequiredPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetConsentContextLookupStrategy(Function<ProfileRequestContext,ConsentContext> strategy)Set the consent context lookup strategy.voidsetConsentFlowDescriptorLookupStrategy(Function<ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.booleantest(ProfileRequestContext input)
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
consentContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,ConsentContext> consentContextLookupStrategy
Consent context lookup strategy.
-
consentFlowDescriptorLookupStrategy
@Nonnull private Function<ProfileRequestContext,ConsentFlowDescriptor> consentFlowDescriptorLookupStrategy
Consent flow descriptor lookup strategy.
-
-
Method Detail
-
setConsentContextLookupStrategy
public void setConsentContextLookupStrategy(@Nonnull Function<ProfileRequestContext,ConsentContext> strategy)Set the consent context lookup strategy.- Parameters:
strategy- consent context lookup strategy
-
setConsentFlowDescriptorLookupStrategy
public void setConsentFlowDescriptorLookupStrategy(@Nonnull Function<ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.- Parameters:
strategy- consent flow descriptor lookup strategy
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
-