Configuration


Configuration javax.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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net