org.apache.geronimo.security.jaas
Class LoginModuleGBean

java.lang.Object
  extended by org.apache.geronimo.security.jaas.LoginModuleGBean
All Implemented Interfaces:
LoginModuleSettings
Direct Known Subclasses:
PasswordCredentialLoginModuleWrapper

public class LoginModuleGBean
extends Object
implements LoginModuleSettings

A GBean that wraps a LoginModule, plus options to configure the LoginModule. If you want to deploy the same LoginModule with different options, you need more than one of these GBeans. But if you want two security realms to refer to exactly the same login module configuration, you can have both realms refer to a single login module GBean.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
LoginModuleGBean(String loginModuleClass, String objectName, boolean wrapPrincipals, Map<String,Object> options, String loginDomainName, ClassLoader classLoader)
           
 
Method Summary
 ClassLoader getClassLoader()
           
static GBeanInfo getGBeanInfo()
           
 String getLoginDomainName()
           
 String getLoginModuleClass()
           
 String getObjectName()
           
 Map<String,Object> getOptions()
           
 boolean isWrapPrincipals()
           
 void setLoginDomainName(String loginDomainName)
           
 void setLoginModuleClass(String loginModuleClass)
           
 void setOptions(Map<String,Object> options)
           
 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 GBeanInfo GBEAN_INFO
Constructor Detail

LoginModuleGBean

public LoginModuleGBean(String loginModuleClass,
                        String objectName,
                        boolean wrapPrincipals,
                        Map<String,Object> options,
                        String loginDomainName,
                        ClassLoader classLoader)
Method Detail

getLoginDomainName

public String getLoginDomainName()
Specified by:
getLoginDomainName in interface LoginModuleSettings

setLoginDomainName

public void setLoginDomainName(String loginDomainName)
Specified by:
setLoginDomainName in interface LoginModuleSettings

getOptions

public Map<String,Object> getOptions()
Specified by:
getOptions in interface LoginModuleSettings

setOptions

public void setOptions(Map<String,Object> options)
Specified by:
setOptions in interface LoginModuleSettings

getLoginModuleClass

public String getLoginModuleClass()
Specified by:
getLoginModuleClass in interface LoginModuleSettings

setLoginModuleClass

public void setLoginModuleClass(String loginModuleClass)
Specified by:
setLoginModuleClass in interface LoginModuleSettings

getObjectName

public String getObjectName()

isWrapPrincipals

public boolean isWrapPrincipals()
Specified by:
isWrapPrincipals in interface LoginModuleSettings

setWrapPrincipals

public void setWrapPrincipals(boolean wrapPrincipals)
Specified by:
setWrapPrincipals in interface LoginModuleSettings

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface LoginModuleSettings

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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