@Internal public class JaasModule extends Object implements SecurityModule
The installed configuration combines login modules based on: - the user-supplied JAAS configuration file, if any - a Kerberos keytab, if configured - any cached Kerberos credentials from the current environment
The module also installs a default JAAS config file (if necessary) for compatibility with ZK and Kafka. Note that the JRE actually draws on numerous file locations. See: https://docs.oracle.com/javase/7/docs/jre/api/security/jaas/spec/com/sun/security/auth/login/ConfigFile.html See: https://github.com/apache/kafka/blob/0.9.0/clients/src/main/java/org/apache/kafka/common/security/kerberos/Login.java#L289
SecurityModule.SecurityInstallException
Constructor and Description |
---|
JaasModule(SecurityConfiguration securityConfig) |
Modifier and Type | Method and Description |
---|---|
static AppConfigurationEntry[] |
getAppConfigurationEntries(SecurityConfiguration securityConfig) |
DynamicConfiguration |
getCurrentConfiguration() |
void |
install()
Install the security module.
|
void |
uninstall()
Uninstall the security module.
|
public JaasModule(SecurityConfiguration securityConfig)
public void install()
SecurityModule
install
in interface SecurityModule
public void uninstall() throws SecurityModule.SecurityInstallException
SecurityModule
uninstall
in interface SecurityModule
SecurityModule.SecurityInstallException
- if the security module couldn't be uninstalled.public DynamicConfiguration getCurrentConfiguration()
public static AppConfigurationEntry[] getAppConfigurationEntries(SecurityConfiguration securityConfig)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.