org.ow2.bonita.identity.auth
Class StorageLoginModule

java.lang.Object
  extended by org.ow2.bonita.identity.auth.StorageLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public final class StorageLoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule

This LoginModule is used only in the case of an heavy Bonita client (standalone, only one JVM, no J2EE). Its purpose is to store data into the SecurityContext. It should be the last LoginModule in the stack of LoginModule configuration.

Author:
"Pierre Vigneras"

Field Summary
protected  javax.security.auth.Subject subject
           
 
Constructor Summary
StorageLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler arg1, java.util.Map<java.lang.String,?> arg2, java.util.Map<java.lang.String,?> arg3)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

protected javax.security.auth.Subject subject
Constructor Detail

StorageLoginModule

public StorageLoginModule()
Method Detail

abort

public boolean abort()
              throws javax.security.auth.login.LoginException
Specified by:
abort in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

commit

public boolean commit()
               throws javax.security.auth.login.LoginException
Specified by:
commit in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler arg1,
                       java.util.Map<java.lang.String,?> arg2,
                       java.util.Map<java.lang.String,?> arg3)
Specified by:
initialize in interface javax.security.auth.spi.LoginModule

login

public boolean login()
              throws javax.security.auth.login.LoginException
Specified by:
login in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

logout

public boolean logout()
               throws javax.security.auth.login.LoginException
Specified by:
logout in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException


Copyright © 2009 OW2 Consortium. All Rights Reserved.