org.apache.geronimo.security.jaas
Class ConfigurationEntry

java.lang.Object
  extended byorg.apache.geronimo.security.jaas.ConfigurationEntry
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle
Direct Known Subclasses:
ConfigurationEntryLocal, ConfigurationEntryRealmLocal

public abstract class ConfigurationEntry
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle

A simple GBean that allows servers to dynamically create JAAS login configuration entries on the fly. When GeronimoLoginConfiguration has been registered via Configuration.setConfiguration(), all logins will pick up these configuration entries and not what could possibly be stored in a login config file referenced by java.security.auth.login.config.

More specifically, you can only use this method or Sun's JAAS config file.

Version:
$Revision: 1.12 $ $Date: 2004/07/12 06:07:50 $
See Also:
GeronimoLoginConfiguration, Configuration

Field Summary
protected  String applicationConfigName
           
protected  org.apache.geronimo.gbean.jmx.GBeanMBeanLifecycleController context
           
protected  LoginModuleControlFlag controlFlag
           
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
protected  org.apache.geronimo.kernel.Kernel kernel
           
protected  Properties options
           
 
Constructor Summary
protected ConfigurationEntry(org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
abstract  AppConfigurationEntry[] getAppConfigurationEntry()
           
 String getApplicationConfigName()
          Get the JAAS config id for this configuration entry.
 LoginModuleControlFlag getControlFlag()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 Properties getOptions()
           
 void setApplicationConfigName(String applicationConfigName)
          Set the JAAS application configuration name for this configuration entry.
 void setControlFlag(LoginModuleControlFlag controlFlag)
           
 void setOptions(Properties options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

protected final org.apache.geronimo.kernel.Kernel kernel

context

protected org.apache.geronimo.gbean.jmx.GBeanMBeanLifecycleController context

applicationConfigName

protected String applicationConfigName

controlFlag

protected LoginModuleControlFlag controlFlag

options

protected Properties options

GBEAN_INFO

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

ConfigurationEntry

protected ConfigurationEntry(org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getApplicationConfigName

public String getApplicationConfigName()
Get the JAAS config id for this configuration entry.

Returns:
the JAAS config id for this configuration entry

setApplicationConfigName

public void setApplicationConfigName(String applicationConfigName)
Set the JAAS application configuration name for this configuration entry.

Parameters:
applicationConfigName - the JAAS config id for this configuration entry

getControlFlag

public LoginModuleControlFlag getControlFlag()

setControlFlag

public void setControlFlag(LoginModuleControlFlag controlFlag)

getOptions

public Properties getOptions()

setOptions

public void setOptions(Properties options)

getAppConfigurationEntry

public abstract AppConfigurationEntry[] getAppConfigurationEntry()

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.