SPT Core API

com.sptci.echo.login
Class JaasLoginListener

java.lang.Object
  extended by com.sptci.echo.login.AbstractListener
      extended by com.sptci.echo.login.LoginListener
          extended by 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.
 
Fields inherited from class com.sptci.echo.login.LoginListener
displayError
 
Constructor Summary
protected JaasLoginListener()
          Default constructor.
protected JaasLoginListener(String module)
          Create a new instance using the specified module for authentication.
 
Method Summary
protected  boolean login(String userName, String password)
          Authenticate the user against the JAAS module.
 
Methods inherited from class com.sptci.echo.login.LoginListener
actionPerformed, displayError, getContent, getView, replaceContent
 
Methods inherited from class com.sptci.echo.login.AbstractListener
checkPassword, checkText, checkUserName, checkView, getLoginPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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.

SPT Core API