Class IsConsentRequiredPredicate
java.lang.Object
net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
,Predicate<ProfileRequestContext>
Predicate that returns whether consent is required by comparing the previous and current consents from the consent
context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,
ConsentContext> Consent context lookup strategy.Consent flow descriptor lookup strategy.private final org.slf4j.Logger
Class logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the consent context lookup strategy.void
setConsentFlowDescriptorLookupStrategy
(Function<ProfileRequestContext, ConsentFlowDescriptor> strategy) Set the consent flow descriptor lookup strategy.boolean
test
(ProfileRequestContext input)
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
consentContextLookupStrategy
Consent context lookup strategy. -
consentFlowDescriptorLookupStrategy
@Nonnull private Function<ProfileRequestContext,ConsentFlowDescriptor> consentFlowDescriptorLookupStrategyConsent flow descriptor lookup strategy.
-
-
Constructor Details
-
IsConsentRequiredPredicate
public IsConsentRequiredPredicate()Constructor.
-
-
Method Details
-
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
- Specified by:
test
in interfacePredicate<ProfileRequestContext>
-