|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.security.auth.login.Configuration
org.apache.oozie.util.JaasConfiguration
public class JaasConfiguration
Creates a programmatic version of a jaas.conf file. This can be used instead of writing a jaas.conf file and setting the system property, "java.security.auth.login.config", to point to that file. It is meant to be used for connecting to ZooKeeper.
example usage: JaasConfiguration.addEntry("Client", principal, keytabFile); javax.security.auth.login.Configuration.setConfiguration(JaasConfiguration.getInstance());
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.security.auth.login.Configuration |
|---|
Configuration.Parameters |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.security.auth.login.Configuration |
|---|
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public 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 Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||