The Security tab of the visual editor lets you edit the platform-specific glassfish-web.xml/glassfish-ejb-jar.xml/glassfish-application.xml deployment descriptor for the GlassFish 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 glassfish-web.xml, glassfish-ejb-jar.xml or glassfish-application.xml deployment descriptor files if the target server is the GlassFish server.
You get to this pane by expanding your project's Configuration Files node in the Projects window and double-clicking glassfish-web.xml, glassfish-ejb-jar.xml or glassfish-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: