public class JaasConfiguration extends Configuration
example usage: JaasConfiguration.addEntry("Client", principal, keytabFile); javax.security.auth.login.Configuration.setConfiguration(JaasConfiguration.getInstance());
Configuration.Parameters| Modifier and Type | Method and Description | 
|---|---|
static void | 
addEntry(String name,
                String principal,
                String keytab)
Add an entry to the jaas configuration with the passed in name, principal, and keytab. 
 | 
static void | 
clearEntries()
Clears all entries. 
 | 
AppConfigurationEntry[] | 
getAppConfigurationEntry(String name)  | 
static Map<String,AppConfigurationEntry> | 
getEntries()
Returns the entries map. 
 | 
static Configuration | 
getInstance()
Return the singleton. 
 | 
static void | 
removeEntry(String name)
Removes the specified entry. 
 | 
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfigurationpublic static Configuration getInstance()
javax.security.auth.login.Configuration.setConfiguration(JaasConfiguration.getInstance());
public static void addEntry(String name, String principal, String keytab)
name - The name of the entry (e.g. "Client")principal - The principal of the userkeytab - The location of the keytabpublic static void removeEntry(String name)
name - The name of the entry to removepublic static void clearEntries()
public static Map<String,AppConfigurationEntry> getEntries()
public AppConfigurationEntry[] getAppConfigurationEntry(String name)
getAppConfigurationEntry in class ConfigurationCopyright © 2016 Apache Software Foundation. All rights reserved.