Class KafkaJaasLoginModuleInitializer
java.lang.Object
org.springframework.kafka.security.jaas.KafkaJaasLoginModuleInitializer
- All Implemented Interfaces:
DisposableBean
,SmartInitializingSingleton
public class KafkaJaasLoginModuleInitializer
extends Object
implements SmartInitializingSingleton, DisposableBean
Contains properties for setting up an
AppConfigurationEntry
that can be used
for the Kafka client.- Since:
- 1.3
- Author:
- Marius Bogoevici, Gary Russell, Edan Idzerda, Soby Chacko
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Control flag values for login configuration. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The key for the kafka client configuration entry. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
void
void
setLoginModule
(String loginModule) void
setOptions
(Map<String, String> options)
-
Field Details
-
KAFKA_CLIENT_CONTEXT_NAME
The key for the kafka client configuration entry.- See Also:
-
-
Constructor Details
-
KafkaJaasLoginModuleInitializer
- Throws:
IOException
-
-
Method Details
-
setLoginModule
-
setControlFlag
-
setOptions
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-
destroy
public void destroy()- Specified by:
destroy
in interfaceDisposableBean
-