Class KafkaAuthStore
java.lang.Object
io.confluent.security.auth.store.kafka.KafkaAuthStore
- All Implemented Interfaces:
io.confluent.security.auth.metadata.AuthStore,ConsumerListener<io.confluent.security.auth.store.data.AuthKey,,io.confluent.security.auth.store.data.AuthValue> Closeable,AutoCloseable,org.apache.kafka.common.Configurable
public class KafkaAuthStore
extends Object
implements io.confluent.security.auth.metadata.AuthStore, ConsumerListener<io.confluent.security.auth.store.data.AuthKey,io.confluent.security.auth.store.data.AuthValue>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface io.confluent.security.auth.metadata.AuthStore
INSTANCES -
Constructor Summary
ConstructorsConstructorDescriptionKafkaAuthStore(boolean isConfluentCloud, io.confluent.security.authorizer.Scope scope, org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, boolean isMdsApiEnabledOnThisBroker) KafkaAuthStore(io.confluent.security.roledefinitions.RbacRoles rbacRoles, org.apache.kafka.common.utils.Time time, io.confluent.security.authorizer.Scope scope, org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, int numAuthTopicPartitions, boolean isMdsApiEnabledOnThisBroker) -
Method Summary
Modifier and TypeMethodDescriptionactiveNodeUrls(String protocol) voidclose()voidvoidfinal booleanmasterWriterUrl(String protocol) voidonConsumerRecord(org.apache.kafka.clients.consumer.ConsumerRecord<io.confluent.security.auth.store.data.AuthKey, io.confluent.security.auth.store.data.AuthValue> record, io.confluent.security.auth.store.data.AuthValue oldValue) Notification of new record consumed by local readerstatic booleanstartService(Collection<URL> nodeUrls) writer()
-
Field Details
-
AUTH_TOPIC
- See Also:
-
METRIC_GROUP
- See Also:
-
-
Constructor Details
-
KafkaAuthStore
public KafkaAuthStore(boolean isConfluentCloud, io.confluent.security.authorizer.Scope scope, org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, boolean isMdsApiEnabledOnThisBroker) -
KafkaAuthStore
public KafkaAuthStore(io.confluent.security.roledefinitions.RbacRoles rbacRoles, org.apache.kafka.common.utils.Time time, io.confluent.security.authorizer.Scope scope, org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, int numAuthTopicPartitions, boolean isMdsApiEnabledOnThisBroker)
-
-
Method Details
-
retryPredicate
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
authCache
- Specified by:
authCachein interfaceio.confluent.security.auth.metadata.AuthStore
-
trustCache
- Specified by:
trustCachein interfaceio.confluent.security.auth.metadata.AuthStore
-
startReader
- Specified by:
startReaderin interfaceio.confluent.security.auth.metadata.AuthStore
-
startService
- Specified by:
startServicein interfaceio.confluent.security.auth.metadata.AuthStore
-
writer
- Specified by:
writerin interfaceio.confluent.security.auth.metadata.AuthStore
-
isMasterWriter
public final boolean isMasterWriter()- Specified by:
isMasterWriterin interfaceio.confluent.security.auth.metadata.AuthStore
-
masterWriterUrl
- Specified by:
masterWriterUrlin interfaceio.confluent.security.auth.metadata.AuthStore
-
masterWriterId
- Specified by:
masterWriterIdin interfaceio.confluent.security.auth.metadata.AuthStore
-
activeNodeUrls
- Specified by:
activeNodeUrlsin interfaceio.confluent.security.auth.metadata.AuthStore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
close
-
onConsumerRecord
public void onConsumerRecord(org.apache.kafka.clients.consumer.ConsumerRecord<io.confluent.security.auth.store.data.AuthKey, io.confluent.security.auth.store.data.AuthValue> record, io.confluent.security.auth.store.data.AuthValue oldValue) Description copied from interface:ConsumerListenerNotification of new record consumed by local reader- Specified by:
onConsumerRecordin interfaceConsumerListener<io.confluent.security.auth.store.data.AuthKey,io.confluent.security.auth.store.data.AuthValue> - Parameters:
record- the record from consumeroldValue- old value corresponding to record key from local cache
-