com.sptci.echo.login
Class JaasLoginListener
java.lang.Object
com.sptci.echo.login.AbstractListener
com.sptci.echo.login.LoginListener
com.sptci.echo.login.JaasLoginListener
- All Implemented Interfaces:
- Serializable, EventListener, ActionListener
public abstract class JaasLoginListener
- extends LoginListener
A login listener that uses JAAS for authentication. The JAAS module
name should be specified in the constructor or configured in the
localisation properties file with key jaas.module.
© Copyright 2008 Sans Pareil Technologies, Inc.
- Version:
- $Id: JaasLoginListener.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2008-04-13
- See Also:
- Serialized Form
|
Field Summary |
static String |
JAAS_MODULE
The key used in localised properties file for JAAS module. |
|
Method Summary |
protected boolean |
login(String userName,
String password)
Authenticate the user against the JAAS module. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAAS_MODULE
public static final String JAAS_MODULE
- The key used in localised properties file for JAAS module.
"jaas.module"
- See Also:
- Constant Field Values
JaasLoginListener
protected JaasLoginListener()
- Default constructor. Initialises
module using the
configured name.
JaasLoginListener
protected JaasLoginListener(String module)
- Create a new instance using the specified module for authentication.
- Parameters:
module - The module name to use.
login
protected boolean login(String userName,
String password)
- Authenticate the user against the JAAS
module.
- Specified by:
login in class LoginListener
- Parameters:
userName - The user/login name of the user.password - The password for the user attempting to log on.
- Returns:
- Returns
true if authentication succeeds.