Class SetConsentToResponseContext

    • Field Detail

      • log

        @Nonnull
        private org.slf4j.Logger log
        Class logger.
      • attributeContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.idp.attribute.context.AttributeContext> attributeContextLookupStrategy
        Strategy used to locate the AttributeContext associated with a given ProfileRequestContext.
      • encodeConsentPredicate

        @Nonnull
        private Predicate<ProfileRequestContext> encodeConsentPredicate
        Predicate used to check if consent should be embedded in tokens.
      • attributeCtx

        @Nullable
        private net.shibboleth.idp.attribute.context.AttributeContext attributeCtx
        AttributeContext to use.
    • Constructor Detail

      • SetConsentToResponseContext

        SetConsentToResponseContext()
        Constructor.
    • Method Detail

      • setAttributeContextLookupStrategy

        public void setAttributeContextLookupStrategy​(@Nonnull
                                                      Function<ProfileRequestContext,​net.shibboleth.idp.attribute.context.AttributeContext> strategy)
        Set the strategy used to locate the AttributeContext associated with a given ProfileRequestContext.
        Parameters:
        strategy - strategy used to locate the AttributeContext associated with a given ProfileRequestContext
      • setConsentEnabledPredicate

        public void setConsentEnabledPredicate​(@Nonnull
                                               Predicate<ProfileRequestContext> predicate)
        Set the predicate used to check if consent is enable.
        Parameters:
        predicate - predicate used to check if consent is enabled
      • setEncodeConsentPredicate

        public void setEncodeConsentPredicate​(@Nonnull
                                              Predicate<ProfileRequestContext> predicate)
        Set the predicate used to check if consent should be encoded.
        Parameters:
        predicate - predicate used to check if consent should be encoded