Package org.apache.kafka.common.acl
Class AccessControlEntry
- java.lang.Object
-
- org.apache.kafka.common.acl.AccessControlEntry
-
-
Constructor Summary
Constructors Constructor Description AccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType)
Create an instance of an access control entry with the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
host()
Return the host or `*` for all hosts.boolean
isUnknown()
Return true if this AclResource has any UNKNOWN components.AclOperation
operation()
Return the AclOperation.AclPermissionType
permissionType()
Return the AclPermissionType.String
principal()
Return the principal for this entry.AccessControlEntryFilter
toFilter()
Create a filter which matches only this AccessControlEntry.String
toString()
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
principal
public String principal()
Return the principal for this entry.
-
host
public String host()
Return the host or `*` for all hosts.
-
operation
public AclOperation operation()
Return the AclOperation. This method will never return AclOperation.ANY.
-
permissionType
public AclPermissionType permissionType()
Return the AclPermissionType. This method will never return AclPermissionType.ANY.
-
toFilter
public AccessControlEntryFilter toFilter()
Create a filter which matches only this AccessControlEntry.
-
isUnknown
public boolean isUnknown()
Return true if this AclResource has any UNKNOWN components.
-
-