Setting permissions in the Java EE Application Permission Editor

After you create your permissions.xml file, you can edit this file with the Java EE Application Permission Editor to set rights and permissions for your Java™ EE applications.

Before you begin

  • Java EE 7 is required to use the Java EE Application Permission Editor.
  • Create the permissions.xml file if it does not exist.
    1. Right-click your project and then select Java EE Tools.
    2. Select Create Java EE Application Permission File.

About this task

Set permissions for your applications by editing your permissions.xml file with the Java EE Application Permission Editor.

Procedure

  1. Open the permissions.xml file with the Java EE Application Permission Editor.
  2. To add permissions, click Add....
  3. Select Permission and click OK.
  4. Select the class name that you want to add from the drop-down menu, and then click OK.

    The Details section of the Java EE Application Permission Editor is displayed.

    Important: If you select Custom Permission... from the drop-down menu, then you must manually enter a value for the Class name, Name, and Actions fields. You cannot use Suggested Values to automatically populate the Name and Actions fields for permissions that are not in the drop-down menu.
  5. Optional: To change or add the name value for the permission, either enter it in the Name field, or click the Suggested Values button for the Name field to see a list of possible values.
    1. Select a name value from the Values drop-down menu.
    2. Click OK.
    Tip: Some classes do not have any available name values. The Name field can be left blank.
  6. Optional: To change or add the actions value for the permission, either enter it in the Actions field, or click the Suggested Values button for the Actions field to see a list of possible values.
    1. Select one or more actions values from the list.
    2. Click OK.
    Tip: Some classes do not have any available actions. The Actions field can be left blank.
  7. Save the permissions.xml file.