role-name run-as-identity-principal weblogic-ejb-jar.xml Deployment Descriptors

Securing Enterprise JavaBeans EJBs 6-15

6.3.2.9 role-name

The role-name element identifies an application role name that the EJB provider placed in the companion ejb-jar.xml file. Subsequent principal-name elements in the stanza map ProductName principals to the specified role-name.

6.3.2.9.1 Used Within The role-name element is used within the

security-role-assignment element.

6.3.2.9.2 Example For an example of how to use the role-name element, see

Example 6–1 .

6.3.2.10 run-as-identity-principal

The run-as-identity-principal element specifies which security principal name is to be used as the run-as principal for a bean that has specified a security-identity run-as role-name in its ejb-jar deployment descriptor. For an explanation of how of run-as role-names to are mapped to run-as-identity-principals or run-as-principal-names, see Section 6.3.2.12, run-as-role-assignment .

6.3.2.10.1 Used Within The run-as-identity-principal element is used within

the run-as-role-assignment element.

6.3.2.10.2 Example For an example of how to use the run-as-identity-principal

element, see Example 6–7 . Example 6–7 run-as-identity-principal Element Example ebj-jar.xml: ejb-jar enterprise-beans session ejb-nameCaller2EJBejb-name homeweblogic.ejb11.security.CallerBeanHomehome remoteweblogic.ejb11.security.CallerBeanRemoteremote ejb-classweblogic.ejb11.security.CallerBeanejb-class session-typeStatefulsession-type transaction-typeContainertransaction-type ejb-refejb-ref-nameCallee2Beanejb-ref-name ejb-ref-typeSessionejb-ref-type homeweblogic.ejb11.security.CalleeBeanHomehome remoteweblogic.ejb11.security.CalleeBeanRemoteremote ejb-ref security-role-ref role-nameusers1role-name role-linkusers1role-link security-role-ref security-identity run-as role-nameusers2role-name run-as security-identity session enterprise-beans Note: Deprecated: The run-as-identity-principal element is deprecated in the WebLogic Server 8.1. Use the run-as-principal-name element instead. 6-16 Programming Security for Oracle WebLogic Server ejb-jar woblogic-ejb-jar.xml: weblogic-ejb-jar weblogic-enterprise-bean ejb-nameCaller2EJBejb-name reference-descriptor ejb-reference-description ejb-ref-nameCallee2Beanejb-ref-name jndi-namesecurity.Callee2Beanjndi-name ejb-reference-description reference-descriptor run-as-identity-principalwsUser3run-as-identity-principal weblogic-enterprise-bean security-role-assignment role-nameuserrole-name principal-namewsUser2principal-name principal-namewsUser3principal-name principal-namewsUser4principal-name security-role-assignment weblogic-ejb-jar

6.3.2.11 run-as-principal-name