# Deployment Descriptor Visual Editor: Security

Use to 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.

For each security role you can specify the following security role mapping properties:

Element | Description
--- | ---
Principals Assigned to this Role | Specifies the names of the principals assigned to the role. Use the buttons on the right to add, edit and remove principals.
Groups Assigned to this Role | Specifies the names of the groups assigned to the role. Use the buttons on the right to add, edit and remove groups.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.