Class AuthAttemptCache
java.lang.Object
io.confluent.kafka.server.plugins.auth.AuthAttemptCache
Caches authentication attempts, whether successful or unsuccessful.
The password hash is cached against the [username, password].
-
Constructor Summary
ConstructorsConstructorDescriptionAuthAttemptCache(long ttlMs, int maxSize, org.apache.kafka.common.utils.Time time, int maxEntriesPerCleanup, String sensorName, org.apache.kafka.common.metrics.Metrics metrics) Create an AuthAttemptCache.AuthAttemptCache(String sensorName, org.apache.kafka.common.metrics.Metrics metrics) Create an AuthAttemptCache using default values of ttl and maxSize -
Method Summary
-
Constructor Details
-
AuthAttemptCache
public AuthAttemptCache(long ttlMs, int maxSize, org.apache.kafka.common.utils.Time time, int maxEntriesPerCleanup, String sensorName, org.apache.kafka.common.metrics.Metrics metrics) Create an AuthAttemptCache.- Parameters:
maxSize- The maximum number of entries in the cache. When necessary, the cache will evict the oldest elements.time- The Kafka time object to provide time.sensorName- A string to differentiate the hit rate metric when multiple caches are in usemetrics- A metrics registry to create the hit rate sensor inttl- How long to cache entries, in milliseconds. The timer is reset on each access.
-
AuthAttemptCache
Create an AuthAttemptCache using default values of ttl and maxSize
-
-
Method Details
-
get
-
put
-
invalidate
-