confluent-kafka-dotnet
Show / Hide Table of Contents

Class AccessControlEntry

Represents an access control entry. ACEs are a tuple of Principal, Host, Operation, and PermissionType.

Inheritance
object
AccessControlEntry
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
TypeDescription
string

Operation

The operation/s specified by this entry.

Declaration
public AclOperation Operation { get; set; }
Property Value
TypeDescription
AclOperation

PermissionType

The permission type for the specified operation.

Declaration
public AclPermissionType PermissionType { get; set; }
Property Value
TypeDescription
AclPermissionType

Principal

The principal this access control entry refers to.

Declaration
public string Principal { get; set; }
Property Value
TypeDescription
string

Methods

Clone()

A clone of the AccessControlEntry object

Declaration
public AccessControlEntry Clone()
Returns
TypeDescription
AccessControlEntry

Equals(object)

Tests whether this instance is equal to the specified object.

Declaration
public override bool Equals(object obj)
Parameters
TypeNameDescription
objectobj

The object to test.

Returns
TypeDescription
bool

true if this is an AccessControlEntry and the property values are equal. false otherwise.

Overrides
object.Equals(object)

GetHashCode()

Returns a hash code for this value.

Declaration
public override int GetHashCode()
Returns
TypeDescription
int

An integer that specifies a hash value for this value.

Overrides
object.GetHashCode()

ToFilter()

Create a filter which matches only this AccessControlEntry.

Declaration
public AccessControlEntryFilter ToFilter()
Returns
TypeDescription
AccessControlEntryFilter

ToString()

Returns a JSON representation of this AccessControlEntry object.

Declaration
public override string ToString()
Returns
TypeDescription
string

A JSON representation of this AccessControlEntry object.

Overrides
object.ToString()

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
TypeNameDescription
AccessControlEntrya

The first AccessControlEntry instance to compare.

AccessControlEntryb

The second AccessControlEntry instance to compare.

Returns
TypeDescription
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
TypeNameDescription
AccessControlEntrya

The first AccessControlEntry instance to compare.

AccessControlEntryb

The second AccessControlEntry instance to compare.

Returns
TypeDescription
bool

true if AccessControlEntry instances a and b are not equal. false otherwise.

In this article