org.apache.geronimo.security.jaas
Class ServerRealmConfigurationEntry

java.lang.Object
  extended by org.apache.geronimo.security.jaas.ServerRealmConfigurationEntry
All Implemented Interfaces:
ConfigurationEntryFactory

public class ServerRealmConfigurationEntry
extends Object
implements ConfigurationEntryFactory

Creates a LoginModule configuration that will connect a server-side component to a security realm. The same thing could be done with a LoginModuleGBean and a DirectConfigurationEntry, but this method saves some configuration effort.


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ServerRealmConfigurationEntry()
           
ServerRealmConfigurationEntry(String applicationConfigName, String realmName, org.apache.geronimo.kernel.Kernel kernel, JaasLoginServiceMBean loginService)
           
 
Method Summary
 JaasLoginModuleConfiguration generateConfiguration()
          Generate a JaasLoginModuleConfiguration
 String getConfigurationName()
          Used to obtain the configuration name to be associated with the generated JaasLoginModuleConfiguration.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 boolean isWrapPrincipals()
           
 void setWrapPrincipals(boolean wrapPrincipals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

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

ServerRealmConfigurationEntry

public ServerRealmConfigurationEntry()

ServerRealmConfigurationEntry

public ServerRealmConfigurationEntry(String applicationConfigName,
                                     String realmName,
                                     org.apache.geronimo.kernel.Kernel kernel,
                                     JaasLoginServiceMBean loginService)
Method Detail

getConfigurationName

public String getConfigurationName()
Description copied from interface: ConfigurationEntryFactory
Used to obtain the configuration name to be associated with the generated JaasLoginModuleConfiguration.

Specified by:
getConfigurationName in interface ConfigurationEntryFactory
Returns:
the configuration name

isWrapPrincipals

public boolean isWrapPrincipals()

setWrapPrincipals

public void setWrapPrincipals(boolean wrapPrincipals)

generateConfiguration

public JaasLoginModuleConfiguration generateConfiguration()
Description copied from interface: ConfigurationEntryFactory
Generate a JaasLoginModuleConfiguration

Specified by:
generateConfiguration in interface ConfigurationEntryFactory
Returns:
a JaasLoginModuleConfiguration

getGBeanInfo

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


Copyright © 2006 Apache Software Foundation. All Rights Reserved.