Class KafkaJaasLoginModuleInitializer
- java.lang.Object
-
- org.springframework.kafka.security.jaas.KafkaJaasLoginModuleInitializer
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.SmartInitializingSingleton
public class KafkaJaasLoginModuleInitializer extends java.lang.Object implements org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.DisposableBean
Contains properties for setting up anAppConfigurationEntry
that can be used for the Kafka client.- Since:
- 1.3
- Author:
- Marius Bogoevici, Gary Russell, Edan Idzerda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KafkaJaasLoginModuleInitializer.ControlFlag
Control flag values for login configuration.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KAFKA_CLIENT_CONTEXT_NAME
The key for the kafka client configuration entry.
-
Constructor Summary
Constructors Constructor Description KafkaJaasLoginModuleInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSingletonsInstantiated()
void
destroy()
void
setControlFlag(KafkaJaasLoginModuleInitializer.ControlFlag controlFlag)
void
setLoginModule(java.lang.String loginModule)
void
setOptions(java.util.Map<java.lang.String,java.lang.String> options)
-
-
-
Field Detail
-
KAFKA_CLIENT_CONTEXT_NAME
public static final java.lang.String KAFKA_CLIENT_CONTEXT_NAME
The key for the kafka client configuration entry.- See Also:
- Constant Field Values
-
-
Method Detail
-
setLoginModule
public void setLoginModule(java.lang.String loginModule)
-
setControlFlag
public void setControlFlag(KafkaJaasLoginModuleInitializer.ControlFlag controlFlag)
-
setOptions
public void setOptions(java.util.Map<java.lang.String,java.lang.String> options)
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()
- Specified by:
afterSingletonsInstantiated
in interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
-