@InterfaceStability.Evolving public class AccessControlEntryFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static AccessControlEntryFilter | ANYMatches 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. |
AccessControlEntryFilter(String principal, String host, AclOperation operation, AclPermissionType permissionType, Collection<Uuid> clusterLinkIds)Create an instance of an access control entry filter with the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Uuid> | clusterLinkIds()Return the cluster link ids associated with this filter. |
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 AccessControlEntryFilter(String principal, String host, AclOperation operation, AclPermissionType permissionType, Collection<Uuid> clusterLinkIds)
principal - the principal or nullhost - the host or nulloperation - non-null operationpermissionType - non-null permission typeclusterLinkIds - Cluster link ids to filter on, or empty collectionpublic String principal()
public String host()
public AclOperation operation()
public AclPermissionType permissionType()
@Confluent public Collection<Uuid> clusterLinkIds()
public boolean isUnknown()
public boolean matches(AccessControlEntry other)
public boolean matchesAtMostOne()
public String findIndefiniteField()