Hitachi

uCosminexus Application Server Security Management Guide


9.4.1 Enterprise Bean method permissions

This section explains how to set method permissions. The method permission definition defines access control based on security roles. You can allow or deny access permissions for all users.

The method permissions can be set on the following methods:

Note that permissions are invalid for the following methods. The method permission defined by the component interface remove method is used to check the access permissions of these methods.

Organization of this subsection

(1) Attribute files to be edited

Edit the following attributes files for each type of Enterprise Beans.

(2) Obtaining the attribute file to be edited and setting up attributes

(3) Attribute settings to be edited

The following table lists the security definition (method permission) settings (<method_permission>).

Item

Required

Tag name

Description

O

<description>

Role name

O#

<role-name>

With method authentication

O#

<unchecked>

Method description

O

<method> - <description>

Interface type

O

<method> - <intf>

Method name

O

<method> - <name>

Legend: O: Optional

Note: When the security definition (method permission) settings (<method-permission>) are set as annotations, they cannot be changed.

#: To enable security management, specify either a role name or method authentication as shown below:

  • To allow or deny access permissions based on security roles:

    Specify a role name (<role-name>).

  • To grant access permissions to all users:

    Specify whether method authentication is enabled (<unchecked>).

To deny access permissions for all users, add information regarding the method with no access permission to <method> under <exclude-list> instead of <method-permission>.

For details about property settings, see: