| Method from org.jboss.security.auth.login.XMLLoginConfig Detail: |
public void addAppConfig(String appName,
AppConfigurationEntry[] entries) {
config.addAppConfig(appName, entries);
} Deprecated!
Add an application login configuration. Any existing configuration for
the given appName will be replaced. |
public void addApplicationPolicy(String appName,
ApplicationPolicy aPolicy) {
config.addApplicationPolicy(appName,aPolicy);
}
Add an application policy given a security domain name |
protected void destroyService() {
config.clear();
}
Clear all configuration entries |
public String displayAppConfig(String appName) {
StringBuffer buffer = new StringBuffer("< h2 >"+appName+" LoginConfiguration< /h2 >\n");
AppConfigurationEntry[] appEntry = config.getAppConfigurationEntry(appName);
if( appEntry == null )
buffer.append("No Entry\n");
else
{
for(int c = 0; c < appEntry.length; c ++)
{
AppConfigurationEntry entry = appEntry[c];
buffer.append("LoginModule Class: "+entry.getLoginModuleName());
buffer.append("\n< br >ControlFlag: "+entry.getControlFlag());
buffer.append("\n< br >Options:< ul >");
Map options = entry.getOptions();
Iterator iter = options.entrySet().iterator();
while( iter.hasNext() )
{
Entry e = (Entry) iter.next();
buffer.append("< li >");
buffer.append("name="+e.getKey());
buffer.append(", value="+e.getValue());
buffer.append("< /li >\n");
}
buffer.append("< /ul >\n");
}
}
return buffer.toString();
}
Display the login configuration for the given application. |
public ApplicationPolicy getApplicationPolicy(String domainName) {
return (ApplicationPolicy)config.getApplicationPolicy(domainName);
}
|
public URL getConfigURL() {
return config.getConfigURL();
}
Set the URL of the XML login configuration file that should
be loaded by this mbean on startup. |
public Configuration getConfiguration(Configuration prevConfig) {
config.setParentConfig(prevConfig);
return config;
}
Get the XML based configuration given the Configuration it should
delegate to when an application cannot be found. |
public boolean getValidateDTD() {
return config.getValidateDTD();
}
Get whether the login config xml document is validated againsts its DTD |
public String[] loadConfig(URL configURL) throws Exception {
return config.loadConfig(configURL);
}
Load the login configuration information from the given config URL. |
public void removeAppConfig(String appName) {
config.removeAppConfig(appName);
}
Remove an application login configuration. |
public void removeConfigs(String[] appNames) {
int count = appNames == null ? 0 : appNames.length;
for(int a = 0; a < count; a ++)
removeAppConfig(appNames[a]);
}
|
public void setConfigResource(String resourceName) throws IOException {
config.setConfigResource(resourceName);
}
Set the resource name of the XML login configuration file that should
be loaded by this mbean on startup. |
public void setConfigURL(URL configURL) {
config.setConfigURL(configURL);
}
Set the URL of the XML login configuration file that should
be loaded by this mbean on startup. |
public void setValidateDTD(boolean flag) {
config.setValidateDTD(flag);
}
Set whether the login config xml document is validated againsts its DTD |
protected void startService() throws Exception {
config.loadConfig();
}
|