uCosminexus Application Server, Security Management Guide
Define the Enterprise Bean security identities.
The two types of security identities, "UseCallerIdentity" and "RunAs", can be set.
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 addr/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 Enterprise Bean security definition (security identity) settings (<security-identity>).
| Item | Required | Tag name |
|---|---|---|
| Description | O | <description> |
| With security identity setting | O# | <use-caller-identity> |
| Description on role identity | O | <run-as> - <description> |
| Security role name | O# | <run-as> - <role-name> |
| Name specified in security role | O | <run-as> - <user-name> |
Legend: O: Optional
#: Set either of the following items depending on whether the caller's security identity is used when a method is executed.
For details about property settings, see:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd