Scope: Class
Multiplicity
(0..1): You can use this tag
zero or one time in the Java™ source
file.
Purpose
This tag specifies whether the security
identity of the caller is to be used for the execution of the methods
of the enterprise bean, or whether a specific run-as identity
is to be used. It contains an optional description and a specification
of the security identity to be used. Applies to session, entity, and
message-driven beans, EJB 2.0.
Parameters
| Parameter |
Type |
Applicability |
Description |
Mandatory |
| description |
text |
|
The description of the
security identity. |
false |
| use-caller-identity |
Boolean |
|
The use-caller-identity element
specifies that the security identity of the caller be used as the
security identity for the execution of the methods of the enterprise
bean. You must specify one of the following attributes:
The default value is
|
false |
| run-as |
text |
|
The run-as element specifies
the run-as identity to be used for the execution of the methods of
an enterprise bean. |
false |