Home » geronimo-2.2-source-release » org.apache.geronimo.security.realm.providers » [javadoc | source]
org.apache.geronimo.security.realm.providers
public class: PropertiesFileLoginModule [javadoc | source]
java.lang.Object
   org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule

All Implemented Interfaces:
    LoginModule

A LoginModule that reads a list of credentials and group from files on disk. The files should be formatted using standard Java properties syntax. Expects to be run by a GenericSecurityRealm (doesn't work on its own).

This login module checks security credentials so the lifecycle methods must return true to indicate success or throw LoginException to indicate failure.

Field Summary
public static final  String USERS_URI     
public static final  String GROUPS_URI     
public static final  String DIGEST     
public static final  String ENCODING     
public static final  List<String> supportedOptions     
final  Properties users     
final  Map<String> groups     
Method from org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule Summary:
abort,   commit,   initialize,   loadProperties,   login,   logout
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule Detail:
 public boolean abort() throws LoginException 
 public boolean commit() throws LoginException 
 public  void initialize(Subject subject,
    CallbackHandler callbackHandler,
    Map sharedState,
    Map options) 
 public  void loadProperties(ServerInfo serverInfo,
    URI userURI,
    URI groupURI) throws GeronimoSecurityException 
 public boolean login() throws LoginException 
    This LoginModule is not to be ignored. So, this method should never return false.
 public boolean logout() throws LoginException