@InterfaceStability.Evolving public class AclBindingFilter extends Object
Modifier and Type | Field and Description |
---|---|
static AclBindingFilter |
ANY
A filter which matches any ACL binding.
|
Constructor and Description |
---|
AclBindingFilter(ResourcePatternFilter patternFilter,
AccessControlEntryFilter entryFilter)
Create an instance of this filter with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
AccessControlEntryFilter |
entryFilter() |
boolean |
equals(Object o) |
String |
findIndefiniteField()
Return a string describing an ANY or UNKNOWN field, or null if there is no such field.
|
int |
hashCode() |
boolean |
isUnknown() |
boolean |
matches(AclBinding binding)
Return true if the resource filter matches the binding's resource and the entry filter matches binding's entry.
|
boolean |
matchesAtMostOne()
Return true if the resource and entry filters can only match one ACE.
|
ResourcePatternFilter |
patternFilter() |
String |
toString() |
public static final AclBindingFilter ANY
public AclBindingFilter(ResourcePatternFilter patternFilter, AccessControlEntryFilter entryFilter)
patternFilter
- non-null pattern filterentryFilter
- non-null access control entry filterpublic boolean isUnknown()
true
if this filter has any UNKNOWN components.public ResourcePatternFilter patternFilter()
public final AccessControlEntryFilter entryFilter()
public boolean matchesAtMostOne()
public String findIndefiniteField()
public boolean matches(AclBinding binding)