uCosminexus Application Server, Security Management Guide
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.
Edit the following attributes files for each type of Enterprise Beans.
Execute the following command to obtain the Enterprise Bean attribute file.
cjgetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name/enterprise bean display name -c enterprise bean attribute file path |
cjgetappprop MyServer -name adder -type ejb -resname adder/adder-eb -c C:\home\adder_ejb.xml
Execute the following command to reflect the Enterprise Bean attribute file values.
cjsetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name/enterprise bean display name -c enterprise bean attribute file path |
cjsetappprop MyServer -name adder -type ejb -resname adder/adder-eb -c C:\home\adder_ejb.xml
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 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:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd