THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
DirectConfigurationEntry
GBean declares following metadata:
applicationConfigName
- attribute; application configuration name; this is a key by which configuration entry is found.controlFlag
- attribute; login module control flag according to the JAAS semantics; the only value that makes sense here is REQUIRED.wrapPrincipals
- attribute; possible values are true and false. If set to true, all Principals generated by the login module (Login Domain) will be wrapped into theDomainPrincipal
and everyDomainPrincipal
will be wrapped into theRealmPrincipal
. This enables J2EE role mappings intoDomainPrincipals
andRealmPrincipals
.Module
- reference; This is object name specification for theLoginModuleGBean
.
The following example shows how DirectConfigurationEntry
is configured to use the ServerLoginCoordinator
login module GBean.
...
ServerRealmConfigurationEntry
declares following metadata:
applicationConfigName
- attribute; application configuration name; this is a key by which configuration entry is found.realmName
- attribute; security realm name.LoginService
- reference; object name for the JAAS Login Service GBean.wrapPrincipals
- attribute; possible values are true and false. If set to true, all Principals generated by the login module (Login Domain) will be wrapped into the DomainPrincipal and every DomainPrincipal will be wrapped into the RealmPrincipal. This enables J2EE role mappings into DomainPrincipals and RealmPrincipals.
Example: Here we setup The following example shows how to setup the ServerRealmConfigurationEntry
with the name of JMX. The security realm name is geronimo-properties-realm
.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<configuration xmlns="http://geronimo.apache.org/xml/ns/deployment-1.0" configId="org/apache/geronimo/Security" parentId="org/apache/geronimo/RMINaming" > <GBean name="JMX" class="org.apache.geronimo.security.jaas.ServerRealmConfigurationEntry"> <attribute name="applicationConfigName">JMX</attribute> <attribute name="realmName">geronimo-properties-realm</attribute> <!--name of the security realm --> <reference name="LoginService"> <!--reference to the login service GBean --> <name>JaasLoginService</name> </reference> </GBean> </configuration> |