In the Security dialog box, define the enterprise bean's security settings.
In the Security Identity pane, select which security identity should
be used for the execution of the methods of other components that are
called from this bean:
Choose Use Caller ID if you want the principal of
this enterprise bean's caller to be propagated to other beans that it
calls.
Choose Run as Specified Role and select the role from the menu if you
want another security identity besides the caller's identity
propagated to other beans.
Click Edit Roles if the role that you want
to use as the security identity is not in the list. You will be taken to
an edit roles dialog where you can add roles to the list, or delete a
role from the list.
Click the Deployment Settings box to go to the Deployment
Settings dialog if you want to set the security deployment
settings at this time. You can enter these settings at a later
time, including at the time you are deploying the enterprise bean.
Set the security permissions for the methods of your enterprise bean in
each of the interfaces in the Method Permissions panel:
Select the interface and the methods will show up in the Method
table. The interface buttons will be disable if the interfaces
have not been defined.
Choose a value for the availability column:
-All Users (default)
-No Users
-Selected Roles
If Selected Roles is selected in the Availability column, the
checkboxes in the role columns are enabled for selection of
roles that have access to the method. Otherwise they are disabled.
In the Role Names Referenced in Code pane, enter the
and the
to which you want to map the security role references:
Click Add to declare a security role reference.
In the Coded Name column, enter the security role reference that is
hardcoded in the enterprise bean's code. The security role references
are hardcoded as arguments to the isCallerInRole methods.
Click Edit Roles if the security role name that you want to map to is not
listed in the Role Name column.
Select the security role name that maps to the coded name from the
drop-down menu in the Role Name column.
To delete a role name from the list, select the row containing
the role name and click Delete. A confirmation dialog will ask
you if you really want to delete the row.