@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(ResourceFilter resourceFilter,
AccessControlEntryFilter entryFilter)
Create an instance of this filter with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
AccessControlEntryFilter |
entryFilter()
Return the access control entry filter.
|
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()
Return true if this filter has any UNKNOWN components.
|
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.
|
ResourceFilter |
resourceFilter()
Return the resource filter.
|
String |
toString() |
public static final AclBindingFilter ANY
public AclBindingFilter(ResourceFilter resourceFilter, AccessControlEntryFilter entryFilter)
resourceFilter
- non-null resource filterentryFilter
- non-null access control entry filterpublic boolean isUnknown()
public ResourceFilter resourceFilter()
public final AccessControlEntryFilter entryFilter()
public boolean matchesAtMostOne()
public String findIndefiniteField()
public boolean matches(AclBinding binding)