~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to j2ee/platform/javahelp/org/netbeans/modules/j2ee/platform/docs/ejb/glossary/securityroleref.html

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
Import upstream version 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!--
 
3
 * Copyright � 2007 Sun Microsystems, Inc. 
 
4
 * All rights reserved.
 
5
 * Use is subject to license terms.
 
6
-->
 
7
<html>
 
8
<head>
 
9
 
 
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">
 
13
 
 
14
</head>
 
15
<body>
 
16
 
 
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 
 
25
  security role. </p>
 
26
<table border="0" cellpadding="1" >
 
27
  <tr valign="top"> 
 
28
    <td><img src="../../images/tip.gif" alt="tip"></td>
 
29
    
 
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>
 
36
  </tr>
 
37
</table>
 
38
 
 
39
 
 
40
</body>
 
41
 
 
42
</html>
 
 
b'\\ No newline at end of file'