Package lumis.portal.authentication
Class LumisLoginModule
- java.lang.Object
-
- lumis.portal.authentication.LumisLoginModule
-
- All Implemented Interfaces:
LoginModule
@StableMinor(version="14.0", sinceVersion="4.0") public class LumisLoginModule extends Object implements LoginModule
Login Module used to login users registered in LumisXP.- Since:
- 4.0.4
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description LumisLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
boolean
commit()
protected String
getLogin()
Returns the login provided by the userprotected String
getModuleName()
Returns the Login module name used to display information to standard out.protected char[]
getPassword()
Returns the password provided by the uservoid
initialize(Subject arg0, CallbackHandler arg1, Map<String,?> arg2, Map<String,?> arg3)
protected String
localize(String stringToLocalize)
boolean
login()
boolean
logout()
protected boolean
validateLogin()
-
-
-
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
-
-
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 interfaceLoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
validateLogin
protected boolean validateLogin() throws LoginException
- Throws:
LoginException
-
commit
public boolean commit() throws LoginException
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
-