lumis.portal.authentication
Class LumisLoginModule

Package class diagram package LumisLoginModule
java.lang.Object
  extended by lumis.portal.authentication.LumisLoginModule
All Implemented Interfaces:
LoginModule

@StableMinor(version="5.5",
             sinceVersion="4.0")
public class LumisLoginModule
extends Object
implements LoginModule

Login Module used to login users registered in Lumis Portal.

Since:
4.0.4

Field Summary
protected  CallbackHandler callbackHandler
           
protected  boolean commitSucceeded
           
protected  boolean debug
           
protected  String login
           
protected  Map options
           
protected  char[] password
           
protected  Subject subject
           
protected  boolean succeeded
           
protected  LumisPrincipal userPrincipal
           
 
Constructor Summary
LumisLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
protected  String getLogin()
          Returns the login provided by the user
protected  String getModuleName()
          Returns the Login module name used to display information to standard out.
protected  char[] getPassword()
          Returns the password provided by the user
 void initialize(Subject arg0, CallbackHandler arg1, Map<String,?> arg2, Map<String,?> arg3)
           
protected  String localize(String stringToLocalize)
           
 boolean login()
           
 boolean logout()
           
protected  boolean validateLogin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

protected Subject subject

callbackHandler

protected CallbackHandler callbackHandler

options

protected Map options

debug

protected boolean debug

succeeded

protected boolean succeeded

commitSucceeded

protected boolean commitSucceeded

login

protected String login

password

protected char[] password

userPrincipal

protected LumisPrincipal userPrincipal
Constructor Detail

LumisLoginModule

public LumisLoginModule()
Method Detail

getLogin

protected String getLogin()
Returns the login provided by the user

Returns:
Since:
4.0.10

getPassword

protected char[] getPassword()
Returns the password provided by the user

Returns:
Since:
4.0.10

getModuleName

protected String getModuleName()
Returns the Login module name used to display information to standard out.

Returns:
The login module name
Since:
4.0.10

initialize

public void initialize(Subject arg0,
                       CallbackHandler arg1,
                       Map<String,?> arg2,
                       Map<String,?> arg3)
Specified by:
initialize in interface LoginModule

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Throws:
LoginException

validateLogin

protected boolean validateLogin()
                         throws LoginException
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
Specified by:
commit in interface LoginModule
Throws:
LoginException

abort

public boolean abort()
              throws LoginException
Specified by:
abort in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Throws:
LoginException

localize

protected String localize(String stringToLocalize)


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.