Class AccessControlEntry
Represents an access control entry. ACEs are a tuple of Principal, Host, Operation, and PermissionType.
Inherited Members
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public class AccessControlEntry
Properties
Host
The host where the call is allowed to come from. Or *
for all hosts.
Declaration
public string Host { get; set; }
Property Value
Type | Description |
---|---|
string |
Operation
The operation/s specified by this entry.
Declaration
public AclOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
AclOperation |
PermissionType
The permission type for the specified operation.
Declaration
public AclPermissionType PermissionType { get; set; }
Property Value
Type | Description |
---|---|
AclPermissionType |
Principal
The principal this access control entry refers to.
Declaration
public string Principal { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
A clone of the AccessControlEntry object
Declaration
public AccessControlEntry Clone()
Returns
Type | Description |
---|---|
AccessControlEntry |
Equals(object)
Tests whether this instance is equal to the specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to test. |
Returns
Type | Description |
---|---|
bool | true if this is an AccessControlEntry and the property values are equal. false otherwise. |
Overrides
GetHashCode()
Returns a hash code for this value.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer that specifies a hash value for this value. |
Overrides
ToFilter()
Create a filter which matches only this AccessControlEntry.
Declaration
public AccessControlEntryFilter ToFilter()
Returns
Type | Description |
---|---|
AccessControlEntryFilter |
ToString()
Returns a JSON representation of this AccessControlEntry object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A JSON representation of this AccessControlEntry object. |
Overrides
Operators
operator ==(AccessControlEntry, AccessControlEntry)
Tests whether AccessControlEntry instance a is equal to AccessControlEntry instance b.
Declaration
public static bool operator ==(AccessControlEntry a, AccessControlEntry b)
Parameters
Type | Name | Description |
---|---|---|
AccessControlEntry | a | The first AccessControlEntry instance to compare. |
AccessControlEntry | b | The second AccessControlEntry instance to compare. |
Returns
Type | Description |
---|---|
bool | true if AccessControlEntry instances a and b are equal. false otherwise. |
operator !=(AccessControlEntry, AccessControlEntry)
Tests whether AccessControlEntry instance a is not equal to AccessControlEntry instance b.
Declaration
public static bool operator !=(AccessControlEntry a, AccessControlEntry b)
Parameters
Type | Name | Description |
---|---|---|
AccessControlEntry | a | The first AccessControlEntry instance to compare. |
AccessControlEntry | b | The second AccessControlEntry instance to compare. |
Returns
Type | Description |
---|---|
bool | true if AccessControlEntry instances a and b are not equal. false otherwise. |