org.apache.geronimo.security.jaas
Class GeronimoLoginConfiguration

java.lang.Object
  extended by javax.security.auth.login.Configuration
      extended by org.apache.geronimo.security.jaas.GeronimoLoginConfiguration
All Implemented Interfaces:
EventListener, GBeanLifecycle, ReferenceCollectionListener

public class GeronimoLoginConfiguration
extends Configuration
implements GBeanLifecycle, ReferenceCollectionListener

A JAAS configuration mechanism (associating JAAS configuration names with specific LoginModule configurations). This is a drop-in replacement for the normal file-reading JAAS configuration mechanism. Instead of getting its configuration from its file, it gets its configuration from other GBeans running in Geronimo.


Constructor Summary
GeronimoLoginConfiguration()
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 AppConfigurationEntry[] getAppConfigurationEntry(String name)
           
 Collection getConfigurations()
           
static GBeanInfo getGBeanInfo()
           
 void memberAdded(ReferenceCollectionEvent event)
           
 void memberRemoved(ReferenceCollectionEvent event)
           
 void refresh()
           
 void setConfigurations(Collection<ConfigurationEntryFactory> configurations)
           
 
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeronimoLoginConfiguration

public GeronimoLoginConfiguration()
Method Detail

getConfigurations

public Collection getConfigurations()

setConfigurations

public void setConfigurations(Collection<ConfigurationEntryFactory> configurations)

getAppConfigurationEntry

public AppConfigurationEntry[] getAppConfigurationEntry(String name)
Specified by:
getAppConfigurationEntry in class Configuration

refresh

public void refresh()
Specified by:
refresh in class Configuration

memberAdded

public void memberAdded(ReferenceCollectionEvent event)
Specified by:
memberAdded in interface ReferenceCollectionListener

memberRemoved

public void memberRemoved(ReferenceCollectionEvent event)
Specified by:
memberRemoved in interface ReferenceCollectionListener

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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