Class IpFilteringAuthStore
java.lang.Object
io.confluent.security.auth.ipFiltering.IpFilteringAuthStore
- 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 IpFilteringAuthStore
extends Object
implements io.confluent.security.auth.metadata.AuthStore, ConsumerListener<io.confluent.security.auth.store.data.AuthKey, io.confluent.security.auth.store.data.AuthValue>
-
Field Summary
Fields inherited from interface io.confluent.security.auth.metadata.AuthStore
INSTANCES -
Constructor Summary
ConstructorsConstructorDescriptionIpFilteringAuthStore(org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo) IpFilteringAuthStore(org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, org.apache.kafka.common.utils.Time time, int numAuthTopicPartitions) -
Method Summary
Modifier and TypeMethodDescriptionactiveNodeUrls(String protocol) io.confluent.security.auth.metadata.AuthCachevoidclose()voidbooleanmasterWriterUrl(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 readerstartService(Collection<URL> serverUrls) io.confluent.security.trustservice.store.TrustCacheio.confluent.security.auth.metadata.AuthWriterwriter()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.security.auth.metadata.AuthStore
updateStoreAuthCacheExternally
-
Constructor Details
-
IpFilteringAuthStore
public IpFilteringAuthStore(org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo) -
IpFilteringAuthStore
public IpFilteringAuthStore(org.apache.kafka.server.authorizer.internals.ConfluentAuthorizerServerInfo serverInfo, org.apache.kafka.common.utils.Time time, int numAuthTopicPartitions)
-
-
Method Details
-
configure
-
startReader
- Specified by:
startReaderin interfaceio.confluent.security.auth.metadata.AuthStore
-
startService
- Specified by:
startServicein interfaceio.confluent.security.auth.metadata.AuthStore
-
authCache
public io.confluent.security.auth.metadata.AuthCache authCache()- Specified by:
authCachein interfaceio.confluent.security.auth.metadata.AuthStore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
trustCache
public io.confluent.security.trustservice.store.TrustCache trustCache()- Specified by:
trustCachein interfaceio.confluent.security.auth.metadata.AuthStore
-
writer
public io.confluent.security.auth.metadata.AuthWriter writer()- Specified by:
writerin interfaceio.confluent.security.auth.metadata.AuthStore
-
isMasterWriter
public boolean isMasterWriter()- Specified by:
isMasterWriterin interfaceio.confluent.security.auth.metadata.AuthStore
-
masterWriterUrl
-
masterWriterId
- Specified by:
masterWriterIdin interfaceio.confluent.security.auth.metadata.AuthStore
-
activeNodeUrls
- Specified by:
activeNodeUrlsin interfaceio.confluent.security.auth.metadata.AuthStore
-
ipFilteringAuthCache
-
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
-