Class MatcherFromPolicy

All Implemented Interfaces:
Matcher, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public final class MatcherFromPolicy extends BaseBridgingClass implements Matcher, IdentifiedComponent, DestructableComponent
Bridging class to go from a PolicyRequirementRule to a Matcher.

If the rule is true then we return all values, else we return none. If the rule fails we return null.

  • Field Details

    • rule

      private final PolicyRequirementRule rule
      The rule we are shadowing.
    • log

      private final org.slf4j.Logger log
      Class logger.
  • Constructor Details

  • Method Details

    • getPolicyRequirementRule

      @Nonnull public PolicyRequirementRule getPolicyRequirementRule()
      Testing support. Get the embedded PolicyRequirementRule.
      the embedded matcher.
    • getMatchingValues

      @Nullable public Set<IdPAttributeValue> getMatchingValues(@Nonnull IdPAttribute attribute, @Nonnull AttributeFilterContext filterContext)
      Return those IdPAttributeValues which match this rule, or null if the matcher failed.
      Specified by:
      getMatchingValues in interface Matcher
      attribute - the attribute under question.
      filterContext - the filter context
      The result of this rule. Null if we failed.