Class AclBindingFilter
java.lang.Object
org.apache.kafka.common.acl.AclBindingFilter
A filter which can match AclBinding objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AclBindingFilterA filter which matches any ACL binding. -
Constructor Summary
ConstructorsConstructorDescriptionAclBindingFilter(ResourcePatternFilter patternFilter, AccessControlEntryFilter entryFilter) Create an instance of this filter with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionfinal AccessControlEntryFilterbooleanReturn a string describing an ANY or UNKNOWN field, or null if there is no such field.inthashCode()booleanbooleanmatches(AclBinding binding) Return true if the resource filter matches the binding's resource and the entry filter matches binding's entry.booleanReturn true if the resource and entry filters can only match one ACE.toString()
-
Field Details
-
ANY
A filter which matches any ACL binding.
-
-
Constructor Details
-
AclBindingFilter
Create an instance of this filter with the provided parameters.- Parameters:
patternFilter- non-null pattern filterentryFilter- non-null access control entry filter
-
-
Method Details
-
isUnknown
public boolean isUnknown()- Returns:
trueif this filter has any UNKNOWN components.
-
patternFilter
- Returns:
- the resource pattern filter.
-
entryFilter
- Returns:
- the access control entry filter.
-
toString
-
equals
-
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
Return a string describing an ANY or UNKNOWN field, or null if there is no such field. -
matches
Return true if the resource filter matches the binding's resource and the entry filter matches binding's entry. -
hashCode
-