Multiple identities for RunAsIdentity
Example 12.8. Assigning multiple roles to a RunAsIdentity You can assign more roles to RunAsIdentity by mapping roles to principals in the jboss-web.xml deployment descriptor element group. ... Support John Jill Tony ... In Example 12.7, “ org.jboss.security.RunAsIdentity Creation”, the of "Mark" was created. The configuration in this example extends the "Admin" role, by adding the "Support" role. The new role contains extra principals, including the originally defined principal "John". The element in both the ejb-jar.xml and jboss.xml files are parsed at deployment time. The and the data is stored in the org.jboss.metadata.SecurityIdentityMetaData class.