Class AccessControlEntry
Represents an access control entry. ACEs are a tuple of Principal, Host, Operation, and PermissionType.
Inheritance
Inherited Members
Namespace: Confluent.Kafka.Admin
Assembly: cs.temp.dll.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|---|
System.Object | obj | The object to test. |
Returns
Type | Description |
---|---|
System.Boolean | 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 |
---|---|
System.Int32 | 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 |
---|---|
System.String | A JSON representation of this AccessControlEntry object. |
Overrides
Operators
Equality(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 |
---|---|
System.Boolean | true if AccessControlEntry instances a and b are equal. false otherwise. |
Inequality(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 |
---|---|
System.Boolean | true if AccessControlEntry instances a and b are not equal. false otherwise. |