Class 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 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.
    • Constructor Detail

      • IsConsentRequiredPredicate

        public IsConsentRequiredPredicate()
        Constructor.
    • 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
      • test

        public boolean test​(@Nullable
                            org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        test in interface Predicate<org.opensaml.profile.context.ProfileRequestContext>