org.jboss.security.auth.login
Class XMLLoginConfigImpl

java.lang.Object
  extended byjavax.security.auth.login.Configuration
      extended byorg.jboss.security.auth.login.XMLLoginConfigImpl

public class XMLLoginConfigImpl
extends javax.security.auth.login.Configuration

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

See Also:
Configuration

Field Summary
protected  java.net.URL loginConfigURL
          The URL to the XML or Sun login configuration
protected  javax.security.auth.login.Configuration parentConfig
          The inherited configuration we delegate to
 
Constructor Summary
XMLLoginConfigImpl()
           
 
Method Summary
 void addAppConfig(java.lang.String appName, javax.security.auth.login.AppConfigurationEntry[] entries)
          Add an application configuration
 void clear()
           
 javax.security.auth.login.AppConfigurationEntry[] getAppConfigurationEntry(java.lang.String appName)
           
 java.net.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  java.lang.String[] loadConfig(java.net.URL config)
           
 void refresh()
           
 void removeAppConfig(java.lang.String appName)
           
 void setConfigResource(java.lang.String resourceName)
           
 void setConfigURL(java.net.URL loginConfigURL)
          Set the URL of the XML login configuration file that should be loaded by this mbean on startup.
 void setParentConfig(javax.security.auth.login.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 java.net.URL loginConfigURL
The URL to the XML or Sun login configuration


parentConfig

protected javax.security.auth.login.Configuration parentConfig
The inherited configuration we delegate to

Constructor Detail

XMLLoginConfigImpl

public XMLLoginConfigImpl()
Method Detail

refresh

public void refresh()

getAppConfigurationEntry

public javax.security.auth.login.AppConfigurationEntry[] getAppConfigurationEntry(java.lang.String appName)

getConfigURL

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


setConfigURL

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


setConfigResource

public void setConfigResource(java.lang.String resourceName)
                       throws java.io.IOException
Throws:
java.io.IOException

setParentConfig

public void setParentConfig(javax.security.auth.login.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(java.lang.String appName,
                         javax.security.auth.login.AppConfigurationEntry[] entries)
Add an application configuration


removeAppConfig

public void removeAppConfig(java.lang.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 java.lang.String[] loadConfig(java.net.URL config)
                                 throws java.lang.Exception
Throws:
java.lang.Exception