Class AccessControlEntry
java.lang.Object
org.apache.kafka.common.acl.AccessControlEntry
Represents an access control entry. ACEs are a tuple of principal, host, operation, and permissionType.
Constructor Summary
ConstructorsConstructorDescriptionAccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType) Create an instance of an access control entry with the provided parameters.AccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType, Collection<Uuid> clusterLinkIds) Create an instance of an access control entry with the provided parameters.Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()host()Return the host or `*` for all hosts.booleanReturn true if this AclResource has any UNKNOWN components.Return the AclOperation.Return the AclPermissionType.Return the principal for this entry.toFilter()Create a filter which matches only this AccessControlEntry.toString()
Constructor Details
AccessControlEntry
public AccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType) Create an instance of an access control entry with the provided parameters.- Parameters:
principal- non-null principalhost- non-null hostoperation- non-null operation, ANY is not an allowed operationpermissionType- non-null permission type, ANY is not an allowed type
AccessControlEntry
public AccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType, Collection<Uuid> clusterLinkIds) Create an instance of an access control entry with the provided parameters.- Parameters:
principal- non-null principalhost- non-null hostoperation- non-null operation, ANY is not an allowed operationpermissionType- non-null permission type, ANY is not an allowed typeclusterLinkIds- Cluster link ids associated with this ACL or empty collection if not migrated by a link
Method Details
principal
Return the principal for this entry.host
Return the host or `*` for all hosts.operation
Return the AclOperation. This method will never return AclOperation.ANY.permissionType
Return the AclPermissionType. This method will never return AclPermissionType.ANY.clusterLinkIds
toFilter
Create a filter which matches only this AccessControlEntry.toString
isUnknown
public boolean isUnknown()Return true if this AclResource has any UNKNOWN components.equals
hashCode