org.jboss.security.auth.login
Class XMLLoginConfigImpl

java.lang.Object
  extended by javax.security.auth.login.Configuration
      extended by org.jboss.security.auth.login.XMLLoginConfigImpl

public class XMLLoginConfigImpl
extends Configuration

An concrete implementation of the javax.security.auth.login.Configuration class that parses an xml configuration of the form: starksm

Version:
$Revision: 57203 $
Author:
Scott.Stark@jboss.org
See Also:
Configuration

Field Summary
protected  URL loginConfigURL
          The URL to the XML or Sun login configuration
protected  Configuration parentConfig
          The inherited configuration we delegate to
 
Constructor Summary
XMLLoginConfigImpl()
           
 
Method Summary
 void addAppConfig(String appName, AppConfigurationEntry[] entries)
          Add an application configuration
 void clear()
           
 AppConfigurationEntry[] getAppConfigurationEntry(String appName)
           
 URL getConfigURL()
          Set the URL of the XML login configuration file that should be loaded by this mbean on startup.
 boolean getValidateDTD()
          Get whether the login config xml document is validated againsts its DTD
 void loadConfig()
          Called to try to load the config from the java.security.auth.login.config property value when there is no loginConfigURL.
protected  String[] loadConfig(URL config)
           
 void refresh()
           
 void removeAppConfig(String appName)
           
 void setConfigResource(String resourceName)
           
 void setConfigURL(URL loginConfigURL)
          Set the URL of the XML login configuration file that should be loaded by this mbean on startup.
 void setParentConfig(Configuration parentConfig)
           
 void setValidateDTD(boolean flag)
          Set whether the login config xml document is validated againsts its DTD
 
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loginConfigURL

protected URL loginConfigURL
The URL to the XML or Sun login configuration


parentConfig

protected Configuration parentConfig
The inherited configuration we delegate to

Constructor Detail

XMLLoginConfigImpl

public XMLLoginConfigImpl()
Method Detail

refresh

public void refresh()
Specified by:
refresh in class Configuration

getAppConfigurationEntry

public AppConfigurationEntry[] getAppConfigurationEntry(String appName)
Specified by:
getAppConfigurationEntry in class Configuration

getConfigURL

public URL getConfigURL()
Set the URL of the XML login configuration file that should be loaded by this mbean on startup.


setConfigURL

public void setConfigURL(URL loginConfigURL)
Set the URL of the XML login configuration file that should be loaded by this mbean on startup.


setConfigResource

public void setConfigResource(String resourceName)
                       throws IOException
Throws:
IOException

setParentConfig

public void setParentConfig(Configuration parentConfig)

getValidateDTD

public boolean getValidateDTD()
Get whether the login config xml document is validated againsts its DTD


setValidateDTD

public void setValidateDTD(boolean flag)
Set whether the login config xml document is validated againsts its DTD


addAppConfig

public void addAppConfig(String appName,
                         AppConfigurationEntry[] entries)
Add an application configuration


removeAppConfig

public void removeAppConfig(String appName)

clear

public void clear()

loadConfig

public void loadConfig()
Called to try to load the config from the java.security.auth.login.config property value when there is no loginConfigURL.


loadConfig

protected String[] loadConfig(URL config)
                       throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.