@InterfaceStability.Evolving public class AccessControlEntryFilter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AccessControlEntryFilter |
ANY
Matches any access control entry.
|
Constructor and Description |
---|
AccessControlEntryFilter(java.lang.String principal,
java.lang.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(java.lang.Object o) |
java.lang.String |
findIndefiniteField()
Returns a string describing an ANY or UNKNOWN field, or null if there is
no such field.
|
int |
hashCode() |
java.lang.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.
|
java.lang.String |
principal()
Return the principal or null.
|
java.lang.String |
toString() |
public static final AccessControlEntryFilter ANY
public AccessControlEntryFilter(java.lang.String principal, java.lang.String host, AclOperation operation, AclPermissionType permissionType)
principal
- the principal or nullhost
- the host or nulloperation
- non-null operationpermissionType
- non-null permission typepublic java.lang.String principal()
public java.lang.String host()
public AclOperation operation()
public AclPermissionType permissionType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUnknown()
public boolean matches(AccessControlEntry other)
public boolean matchesAtMostOne()
public java.lang.String findIndefiniteField()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object