|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.security.realm.GenericSecurityRealm
public class GenericSecurityRealm
A security realm that can be configured for one or more login modules. It can handle a combination of client-side and server-side login modules for the case of remote clients, and it can auto-role-mapping for its login modules (though you must configure it for that).
This realm populates a number of special login module options for the benefit of Geronimo login modules (though some of them are only available to server-side login modules, marked as not Serializable below):Option Type Serializable JaasLoginModuleUse.KERNEL_LM_OPTION String (Kernel name) Yes JaasLoginModuleUse.SERVERINFO_LM_OPTION ServerInfo No JaasLoginModuleUse.CLASSLOADER_LM_OPTION ClassLoader NoThese options can be safely ignored by login modules that don't need them (such as any custom LoginModules you may already have lying around).
| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
GenericSecurityRealm(String realmName,
JaasLoginModuleUse loginModuleUse,
boolean wrapPrincipals,
ServerInfo serverInfo,
ClassLoader classLoader,
Kernel kernel)
|
|
| Method Summary | |
|---|---|
AppConfigurationEntry[] |
getAppConfigurationEntries()
Generate the AppConfigurationEntry array for the login modules in this configuration. |
String |
getConfigurationName()
Used to obtain the configuration name to be associated with the generated AppConfigurationEntry array. |
static GBeanInfo |
getGBeanInfo()
|
String[] |
getLoginDomains()
Gets a list of the login domains that make up this security realm. |
JaasLoginModuleChain |
getLoginModuleChain()
|
String |
getRealmName()
The name of the realm, which must be unique across all realms in the server. |
boolean |
isWrapPrincipals()
If this attribute is true, then the principals will be wrapped in realm principals. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public GenericSecurityRealm(String realmName,
JaasLoginModuleUse loginModuleUse,
boolean wrapPrincipals,
ServerInfo serverInfo,
ClassLoader classLoader,
Kernel kernel)
throws ClassNotFoundException
ClassNotFoundException| Method Detail |
|---|
public String getRealmName()
SecurityRealm
getRealmName in interface SecurityRealmpublic AppConfigurationEntry[] getAppConfigurationEntries()
ConfigurationEntryFactoryAppConfigurationEntry array for the login modules in this configuration.
getAppConfigurationEntries in interface ConfigurationEntryFactoryAppConfigurationEntry[]public JaasLoginModuleChain getLoginModuleChain()
public String[] getLoginDomains()
public boolean isWrapPrincipals()
public String getConfigurationName()
ConfigurationEntryFactoryAppConfigurationEntry array.
getConfigurationName in interface ConfigurationEntryFactorypublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||