Package org.apache.kafka.common.acl
Class AclBinding
java.lang.Object
org.apache.kafka.common.acl.AclBinding
@Evolving public class AclBinding extends Object
Represents a binding between a resource pattern and an access control entry.
The API for this class is still evolving and we may break compatibility in minor releases, if necessary.
-
Constructor Summary
Constructors Constructor Description AclBinding(ResourcePattern pattern, AccessControlEntry entry)
Create an instance of this class with the provided parameters. -
Method Summary
Modifier and Type Method Description AccessControlEntry
entry()
boolean
equals(Object o)
int
hashCode()
boolean
isUnknown()
ResourcePattern
pattern()
AclBindingFilter
toFilter()
Create a filter which matches only this AclBinding.String
toString()
-
Constructor Details
-
AclBinding
Create an instance of this class with the provided parameters.- Parameters:
pattern
- non-null resource pattern.entry
- non-null entry
-
-
Method Details
-
isUnknown
public boolean isUnknown()- Returns:
- true if this binding has any UNKNOWN components.
-
pattern
- Returns:
- the resource pattern for this binding.
-
entry
- Returns:
- the access control entry for this binding.
-
toFilter
Create a filter which matches only this AclBinding. -
toString
-
equals
-
hashCode
public int hashCode()
-