1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright � 2007 Sun Microsystems, Inc.
5
* Use is subject to license terms.
10
<title>security role reference</title>
11
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12
<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
17
<h6>security role reference</h6>
18
<p>If an enterprise bean uses security roles in its own methods to determine who
19
has authority to perform tasks (also called <i>programmatic security</i>),
20
the bean has to have a security role reference defined for each role it uses.
21
A security role reference maps the bean's internal names for security roles
22
to roles that exist in the deployment environment. </p>
23
<p>A security role reference is required, for example, if the enterprise bean
24
makes calls to <tt>context.isCallerInRole(</tt><i>rolename</i><tt>)</tt> to get a
26
<table border="0" cellpadding="1" >
28
<td><img src="../../images/tip.gif" alt="tip"></td>
30
<td> You can define security roles in an EJB module and in a J2EE application.
31
You can link these module-level and application-level security roles to
32
security role references in the included enterprise beans. You can also
33
map these security roles to users and groups that exist in a deployment
34
environment, creating a complete chain from the security role reference
35
in the enterprise bean to the deployment environment's users.</td>
b'\\ No newline at end of file'