Class AclBindingFilter


@Evolving public class AclBindingFilter extends Object
A filter which can match AclBinding objects. The API for this class is still evolving and we may break compatibility in minor releases, if necessary.
  • Field Details

    • ANY

      public static final AclBindingFilter ANY
      A filter which matches any ACL binding.
  • Constructor Details

    • AclBindingFilter

      public AclBindingFilter(ResourcePatternFilter patternFilter, AccessControlEntryFilter entryFilter)
      Create an instance of this filter with the provided parameters.
      patternFilter - non-null pattern filter
      entryFilter - non-null access control entry filter
  • Method Details

    • isUnknown

      public boolean isUnknown()
      true if this filter has any UNKNOWN components.
    • patternFilter

      public ResourcePatternFilter patternFilter()
      the resource pattern filter.
    • entryFilter

      public final AccessControlEntryFilter entryFilter()
      the access control entry filter.
    • toString

      public String toString()
      toString in class Object
    • equals

      public boolean equals(Object o)
      equals in class Object
    • matchesAtMostOne

      public boolean matchesAtMostOne()
      Return true if the resource and entry filters can only match one ACE. In other words, if there are no ANY or UNKNOWN fields.
    • findIndefiniteField

      public String findIndefiniteField()
      Return a string describing an ANY or UNKNOWN field, or null if there is no such field.
    • matches

      public boolean matches(AclBinding binding)
      Return true if the resource filter matches the binding's resource and the entry filter matches binding's entry.
    • hashCode

      public int hashCode()
      hashCode in class Object