Class IsConsentRequiredPredicate
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate
-
- All Implemented Interfaces:
Predicate<org.opensaml.profile.context.ProfileRequestContext>,net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.profile.context.ProfileRequestContext>
public class IsConsentRequiredPredicate extends Object implements net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.profile.context.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<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext>consentContextLookupStrategyConsent context lookup strategy.private Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor>consentFlowDescriptorLookupStrategyConsent flow descriptor lookup strategy.private LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description IsConsentRequiredPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetConsentContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.voidsetConsentFlowDescriptorLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.booleantest(org.opensaml.profile.context.ProfileRequestContext input)
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
consentContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> consentContextLookupStrategy
Consent context lookup strategy.
-
consentFlowDescriptorLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> consentFlowDescriptorLookupStrategy
Consent flow descriptor lookup strategy.
-
-
Method Detail
-
setConsentContextLookupStrategy
public void setConsentContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.consent.context.ConsentContext> strategy)Set the consent context lookup strategy.- Parameters:
strategy- consent context lookup strategy
-
setConsentFlowDescriptorLookupStrategy
public void setConsentFlowDescriptorLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,ConsentFlowDescriptor> strategy)Set the consent flow descriptor lookup strategy.- Parameters:
strategy- consent flow descriptor lookup strategy
-
-