com.sun.faban.harness.engine
Class LoginConfiguration

java.lang.Object
extended by javax.security.auth.login.Configuration
extended by com.sun.faban.harness.engine.LoginConfiguration

public class LoginConfiguration
extends Configuration

The Faban harness login configuration object.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters
 
Constructor Summary
LoginConfiguration()
           
 
Method Summary
 AppConfigurationEntry[] getAppConfigurationEntry(String name)
          Retrieve the AppConfigurationEntries for the specified name from this Configuration.
 void readConfig(Node root, XPath xPath)
          Reads the login configuration from a DOM tree.
 void refresh()
          Refresh and reload the Configuration.
 
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginConfiguration

public LoginConfiguration()
Method Detail

readConfig

public void readConfig(Node root,
XPath xPath)
throws XPathExpressionException
Reads the login configuration from a DOM tree.

Parameters:
root - The root node
xPath - An xpath instance
Throws:
XPathExpressionException - If there is an error in the xpath

getAppConfigurationEntry

public AppConfigurationEntry[] getAppConfigurationEntry(String name)
Retrieve the AppConfigurationEntries for the specified name from this Configuration.

Specified by:
getAppConfigurationEntry in class Configuration
Parameters:
name - the name used to index the Configuration.
Returns:
an array of AppConfigurationEntries for the specified name from this Configuration, or null if there are no entries for the specified name

refresh

public void refresh()
Refresh and reload the Configuration.

This method causes this Configuration object to refresh/reload its contents in an implementation-dependent manner. For example, if this Configuration object stores its entries in a file, calling refresh may cause the file to be re-read.

Overrides:
refresh in class Configuration
Throws:
SecurityException - if the caller does not have permission to refresh its Configuration.