Package lumis.portal.authentication
Class LumisLoginModule
- java.lang.Object
-
- lumis.portal.authentication.LumisLoginModule
-
- All Implemented Interfaces:
javax.security.auth.spi.LoginModule
@StableMinor(version="17.0", sinceVersion="4.0") public class LumisLoginModule extends java.lang.Object implements javax.security.auth.spi.LoginModule
Login Module used to login users registered in LumisXP.- Since:
- 4.0.4
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.security.auth.callback.CallbackHandler
callbackHandler
protected boolean
commitSucceeded
protected boolean
debug
protected java.lang.String
login
protected char[]
mfaToken
protected java.util.Map
options
protected char[]
password
protected javax.security.auth.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 java.lang.String
getLogin()
Returns the login provided by the userprotected java.lang.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(javax.security.auth.Subject arg0, javax.security.auth.callback.CallbackHandler arg1, java.util.Map<java.lang.String,?> arg2, java.util.Map<java.lang.String,?> arg3)
protected java.lang.String
localize(java.lang.String stringToLocalize)
boolean
login()
boolean
logout()
protected boolean
validateLogin()
-
-
-
Field Detail
-
subject
protected javax.security.auth.Subject subject
-
callbackHandler
protected javax.security.auth.callback.CallbackHandler callbackHandler
-
options
protected java.util.Map options
-
debug
protected boolean debug
-
succeeded
protected boolean succeeded
-
commitSucceeded
protected boolean commitSucceeded
-
login
protected java.lang.String login
-
password
protected char[] password
-
mfaToken
protected char[] mfaToken
-
userPrincipal
protected LumisPrincipal userPrincipal
-
-
Method Detail
-
getLogin
protected java.lang.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 java.lang.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(javax.security.auth.Subject arg0, javax.security.auth.callback.CallbackHandler arg1, java.util.Map<java.lang.String,?> arg2, java.util.Map<java.lang.String,?> arg3)
- Specified by:
initialize
in interfacejavax.security.auth.spi.LoginModule
-
login
public boolean login() throws javax.security.auth.login.LoginException
- Specified by:
login
in interfacejavax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
-
validateLogin
protected boolean validateLogin() throws javax.security.auth.login.LoginException
- Throws:
javax.security.auth.login.LoginException
-
commit
public boolean commit() throws javax.security.auth.login.LoginException
- Specified by:
commit
in interfacejavax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
-
abort
public boolean abort() throws javax.security.auth.login.LoginException
- Specified by:
abort
in interfacejavax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
-
logout
public boolean logout() throws javax.security.auth.login.LoginException
- Specified by:
logout
in interfacejavax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
-
localize
protected java.lang.String localize(java.lang.String stringToLocalize)
-
-