Package org.apache.kafka.common.acl
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 SummaryConstructorsConstructorDescriptionAccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType) Create an instance of an access control entry with the provided parameters.
- 
Method SummaryModifier 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- 
AccessControlEntrypublic 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 principal
- host- non-null host
- operation- non-null operation, ANY is not an allowed operation
- permissionType- non-null permission type, ANY is not an allowed type
 
 
- 
- 
Method Details- 
principalReturn the principal for this entry.
- 
hostReturn the host or `*` for all hosts.
- 
operationReturn the AclOperation. This method will never return AclOperation.ANY.
- 
permissionTypeReturn the AclPermissionType. This method will never return AclPermissionType.ANY.
- 
toFilterCreate a filter which matches only this AccessControlEntry.
- 
toString
- 
isUnknownpublic boolean isUnknown()Return true if this AclResource has any UNKNOWN components.
- 
equals
- 
hashCodepublic int hashCode()
 
-