Class AbstractConditionalProfileConfiguration

    • Field Detail

      • activationCondition

        @Nonnull
        private Predicate<org.opensaml.profile.context.ProfileRequestContext> activationCondition
        Activation condition.
    • Constructor Detail

      • AbstractConditionalProfileConfiguration

        public AbstractConditionalProfileConfiguration​(@Nonnull @NotEmpty @ParameterName(name="id")
                                                       String id)
        Constructor.
        Parameters:
        id - ID of the communication profile, never null or empty
    • Method Detail

      • getActivationCondition

        @Nonnull
        public Predicate<org.opensaml.profile.context.ProfileRequestContext> getActivationCondition()
        Get the condition controlling enablement of this profile.
        Specified by:
        getActivationCondition in interface ConditionalProfileConfiguration
        Returns:
        condition controlling enablement of this profile
      • setActivationCondition

        public void setActivationCondition​(@Nonnull
                                           Predicate<org.opensaml.profile.context.ProfileRequestContext> condition)
        Set an activation condition to control this profile.
        Parameters:
        condition - condition to apply