@InterfaceStability.Evolving public class AccessControlEntryFilter extends Object
Modifier and Type | Field and Description |
---|---|
static AccessControlEntryFilter |
ANY
Matches any access control entry.
|
Constructor and Description |
---|
AccessControlEntryFilter(String principal,
String host,
AclOperation operation,
AclPermissionType permissionType)
Create an instance of an access control entry filter with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
findIndefiniteField()
Returns a string describing an ANY or UNKNOWN field, or null if there is
no such field.
|
int |
hashCode() |
String |
host()
Return the host or null.
|
boolean |
isUnknown()
Return true if there are any UNKNOWN components.
|
boolean |
matches(AccessControlEntry other)
Returns true if this filter matches the given AccessControlEntry.
|
boolean |
matchesAtMostOne()
Returns true if this filter could only match one ACE -- in other words, if
there are no ANY or UNKNOWN fields.
|
AclOperation |
operation()
Return the AclOperation.
|
AclPermissionType |
permissionType()
Return the AclPermissionType.
|
String |
principal()
Return the principal or null.
|
String |
toString() |
public static final AccessControlEntryFilter ANY
public AccessControlEntryFilter(String principal, String host, AclOperation operation, AclPermissionType permissionType)
principal
- the principal or nullhost
- the host or nulloperation
- non-null operationpermissionType
- non-null permission typepublic String principal()
public String host()
public AclOperation operation()
public AclPermissionType permissionType()
public boolean isUnknown()
public boolean matches(AccessControlEntry other)
public boolean matchesAtMostOne()
public String findIndefiniteField()