org.apache.geronimo.security.jaas
Class LoginService

java.lang.Object
  extended byorg.apache.geronimo.security.jaas.LoginService
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, LoginServiceMBean

public class LoginService
extends Object
implements LoginServiceMBean, org.apache.geronimo.gbean.GBeanLifecycle

An MBean that maintains a list of security realms.

Version:
$Revision: 1.9 $ $Date: 2004/07/12 06:07:50 $

Field Summary
protected static EDU.oswego.cs.dl.util.concurrent.ClockDaemon clockDaemon
          Manages the thread that can used to schedule short running tasks in the future.
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
static javax.management.ObjectName LOGIN_SERVICE
          The JMX name of the SecurityService.
 
Constructor Summary
LoginService()
           
 
Method Summary
 boolean abort(LoginModuleId loginModuleId)
           
 LoginModuleId allocateLoginModule(String realmName)
           
 boolean commit(LoginModuleId loginModuleId)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 String getAlgorithm()
           
 SerializableACE getAppConfigurationEntry(String realmName)
           
 Collection getCallbacks(LoginModuleId loginModuleId)
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 Collection getLoginModules()
           
 String getPassword()
           
 Collection getRealms()
           
 long getReclaimPeriod()
           
 boolean login(LoginModuleId loginModuleId, Collection callbacks)
           
 boolean logout(LoginModuleId loginModuleId)
           
 void removeLoginModule(LoginModuleId loginModuleId)
           
 Subject retrieveSubject(LoginModuleId loginModuleId)
           
 void setAlgorithm(String algorithm)
           
 void setPassword(String password)
           
 void setRealms(Collection realms)
           
 void setReclaimPeriod(long reclaimPeriod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_SERVICE

public static final javax.management.ObjectName LOGIN_SERVICE
The JMX name of the SecurityService.


clockDaemon

protected static final EDU.oswego.cs.dl.util.concurrent.ClockDaemon clockDaemon
Manages the thread that can used to schedule short running tasks in the future.


GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

LoginService

public LoginService()
Method Detail

getReclaimPeriod

public long getReclaimPeriod()

setReclaimPeriod

public void setReclaimPeriod(long reclaimPeriod)

getRealms

public Collection getRealms()
                     throws GeronimoSecurityException
Specified by:
getRealms in interface LoginServiceMBean
Throws:
GeronimoSecurityException

setRealms

public void setRealms(Collection realms)
Specified by:
setRealms in interface LoginServiceMBean

getLoginModules

public Collection getLoginModules()
                           throws GeronimoSecurityException
Throws:
GeronimoSecurityException

getAlgorithm

public String getAlgorithm()

setAlgorithm

public void setAlgorithm(String algorithm)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getAppConfigurationEntry

public SerializableACE getAppConfigurationEntry(String realmName)
Specified by:
getAppConfigurationEntry in interface LoginServiceMBean

allocateLoginModule

public LoginModuleId allocateLoginModule(String realmName)
Specified by:
allocateLoginModule in interface LoginServiceMBean

removeLoginModule

public void removeLoginModule(LoginModuleId loginModuleId)
                       throws ExpiredLoginModuleException
Specified by:
removeLoginModule in interface LoginServiceMBean
Throws:
ExpiredLoginModuleException

getCallbacks

public Collection getCallbacks(LoginModuleId loginModuleId)
                        throws ExpiredLoginModuleException
Specified by:
getCallbacks in interface LoginServiceMBean
Throws:
ExpiredLoginModuleException

login

public boolean login(LoginModuleId loginModuleId,
                     Collection callbacks)
              throws LoginException
Specified by:
login in interface LoginServiceMBean
Throws:
LoginException

commit

public boolean commit(LoginModuleId loginModuleId)
               throws LoginException
Specified by:
commit in interface LoginServiceMBean
Throws:
LoginException

abort

public boolean abort(LoginModuleId loginModuleId)
              throws LoginException
Specified by:
abort in interface LoginServiceMBean
Throws:
LoginException

logout

public boolean logout(LoginModuleId loginModuleId)
               throws LoginException
Specified by:
logout in interface LoginServiceMBean
Throws:
LoginException

retrieveSubject

public Subject retrieveSubject(LoginModuleId loginModuleId)
                        throws LoginException
Specified by:
retrieveSubject in interface LoginServiceMBean
Throws:
LoginException

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException,
                   Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.