Adempiere 3.4.0s

org.compiere.session
Class AdempiereLoginModule

java.lang.Object
  extended by org.compiere.session.AdempiereLoginModule
All Implemented Interfaces:
LoginModule

public class AdempiereLoginModule
extends Object
implements LoginModule

JAAS login module for adempiere

Author:
Low Heng Sin

Constructor Summary
AdempiereLoginModule()
           
 
Method Summary
 boolean abort()
          abort authentication process, reset state
 boolean commit()
          commit/complete the authentication project, add identity and roles to subject.
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
          Initialize the login module, get options from configuration
 boolean login()
          Perform login process
 boolean logout()
          logout, reset state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdempiereLoginModule

public AdempiereLoginModule()
Method Detail

abort

public boolean abort()
              throws LoginException
abort authentication process, reset state

Specified by:
abort in interface LoginModule
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
commit/complete the authentication project, add identity and roles to subject.

Specified by:
commit in interface LoginModule
Throws:
LoginException

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map<String,?> sharedState,
                       Map<String,?> options)
Initialize the login module, get options from configuration

Specified by:
initialize in interface LoginModule

login

public boolean login()
              throws LoginException
Perform login process

Specified by:
login in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
logout, reset state

Specified by:
logout in interface LoginModule
Throws:
LoginException

Adempiere 3.4.0s

AdemPiere