org.apache.geronimo.security.jaas
Class LoginService
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LoginService
public LoginService()
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.