The Security tab of the visual editor lets you edit the platform-specific sun-web.xml/sun-ejb-jar.xml/sun-application.xml deployment descriptor for the GlassFish application server or Sun Java System Application Server. The Security Role Mapping pane enables you to specify the principals and groups assigned to each security role specified in web.xml or ejb-jar.xml. The security role nodes in the pane are determined by the security roles defined in web.xml.
A web or enterprise application will only contain the sun-web.xml, sun-ejb-jar.xml or sun-application.xml deployment descriptor files if the target server is the GlassFish application server or Sun Java System Application Server.
You get to this pane by expanding your project's Configuration Files node in the Projects window and double-clicking sun-web.xml, sun-ejb-jar.xml or sun-application.xml and clicking the Security tab.
You can click the XML tab at the top of the visual editor to edit the file in the XML editor.
For each security role you can specify the following security role mapping properties:
The names of the principals and groups specified in descriptor file must also be defined on the GlassFish application server. For more on working with users and groups, see Managing Users for the GlassFish Application Server.
To add a security role:
For steps on adding security roles in web.xml or ejb-jar.xml, see the following topics: