Package org.apache.kafka.common.acl
Class AclBinding
- java.lang.Object
-
- org.apache.kafka.common.acl.AclBinding
-
-
Constructor Summary
Constructors Constructor Description AclBinding(ResourcePattern pattern, AccessControlEntry entry)
Create an instance of this class with the provided parameters.AclBinding(Resource resource, AccessControlEntry entry)
Deprecated.Since 2.0.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
AclBinding
public AclBinding(ResourcePattern pattern, AccessControlEntry entry)
Create an instance of this class with the provided parameters.- Parameters:
pattern
- non-null resource pattern.entry
- non-null entry
-
AclBinding
@Deprecated public AclBinding(Resource resource, AccessControlEntry entry)
Deprecated.Since 2.0. UseAclBinding(ResourcePattern, AccessControlEntry)
Create an instance of this class with the provided parameters.- Parameters:
resource
- non-null resourceentry
- non-null entry
-
-
Method Detail
-
isUnknown
public boolean isUnknown()
- Returns:
- true if this binding has any UNKNOWN components.
-
pattern
public ResourcePattern pattern()
- Returns:
- the resource pattern for this binding.
-
entry
public final AccessControlEntry entry()
- Returns:
- the access control entry for this binding.
-
toFilter
public AclBindingFilter toFilter()
Create a filter which matches only this AclBinding.
-
-