Team LiB
Previous Section Next Section

Configurationjavax.security.auth.login

Java 1.4

This abstract class is a representation of the system and user login configuration files. The static getConfiguration( ) method returns the global Configuration object, and the static setConfiguration( ) allows that global object to be replaced with some other implementation. The instance method refresh( ) causes a Configuration to re-read the underlying configuration files. getAppConfigurationEntry( ) is the key method: it returns an array of AppConfigurationEntry objects that represent the set of login modules to be used for applications with the specified name. LoginContext uses this class to determine which login modules to use to authenticate a user of the named application. Application programmers do not typically need to use this class themselves. See the documentation for your Java implementation for the syntax of the underlying login configuration files.

public abstract class Configuration {
// Protected Constructors
     protected Configuration( );  
// Public Class Methods
     public static Configuration getConfiguration( );                     synchronized
     public static void setConfiguration(Configuration configuration);  
// Public Instance Methods
     public abstract AppConfigurationEntry[ ] getAppConfigurationEntry(String name);  
     public abstract void refresh( );  
}

Passed To

LoginContext.LoginContext( )

    Team LiB
    Previous Section Next Section