| Method from org.jboss.security.auth.login.XMLLoginConfig Detail: |
public void addAppConfig(String appName,
AppConfigurationEntry[] entries) {
this.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) {
this.config.addApplicationPolicy(appName, aPolicy);
}
Add an application policy given a security domain name |
protected void destroyService() {
this.config.clear();
}
Clear all configuration entries |
public String displayAppConfig(String appName) {
StringBuffer buffer = new StringBuffer("< h2 >" + appName + " LoginConfiguration< /h2 >\n");
AppConfigurationEntry[] appEntry = this.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) this.config.getApplicationPolicy(domainName);
}
|
public URL getConfigURL() {
return this.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) {
this.config.setParentConfig(prevConfig);
return this.config;
}
Get the XML based configuration given the Configuration it should delegate to when an application cannot be found. |
public boolean getValidateDTD() {
return this.config.getValidateDTD();
}
Get whether the login config xml document is validated againsts its DTD |
public String[] loadConfig(URL configURL) throws Exception {
return this.config.loadConfig(configURL);
}
Load the login configuration information from the given config URL. |
public void removeAppConfig(String appName) {
this.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 {
this.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) {
this.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) {
this.config.setValidateDTD(flag);
}
Set whether the login config xml document is validated againsts its DTD |
protected void startService() throws Exception {
this.config.loadConfig();
}
|