Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Superelements
- Next: service-endpoint-interface

### Subelements

The following table describes subelements for the `security-role-mapping` element.

Table A–101 `security-role-mapping` Subelements

Element | Required | Description
--- | --- | ---
role-name | only one | Contains the `role-name` in the `security-role` element of the corresponding J2EE deployment descriptor file.
principal-name | one or more if no `group-name`, otherwise zero or more | Contains a principal (user) name in the current realm. In an enterprise bean, the principal must have the run-as role specified.
group-name | one or more if no `principal-name`, otherwise zero or more | Contains a group name in the current realm.

- Previous: Superelements
- Next: service-endpoint-interface

- © 2010, Oracle Corporation and/or its affiliates