03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

►<br />

Session, entity, and message-driven bean methods can be delegated to<br />

execute under the identity of either the caller (default), the EJB server, or a<br />

specific security role. This is referred to as the Delegation Policy or Run-As<br />

Mode Mapping.<br />

In the next sections, each of these methods of applying security to EJBs will be<br />

discussed in detail.<br />

5.2 Defining J2EE roles for EJB modules<br />

The method for defining security roles for EJBs and Web Components in the<br />

Application Assembly Tool is the same. For example, to add a role named<br />

manager to the EJB component, do the following:<br />

1. Open the .ear file of the application, in our example: itsobank.ear.<br />

2. Open the EJB Modules folder for your application, open the desired module<br />

under it, itsobankEJB in our case, then finally select <strong>Security</strong> Roles.<br />

3. If no security roles have previously been defined for EJBs, the box on the<br />

right will be empty. Right-click the space under Name, and you will see the<br />

pop-up menu. Select New to create a new security role.<br />

4. In the New <strong>Security</strong> Role dialog, shown in Figure 5-1, enter the name of the<br />

role, Manager, and (optionally) a description of the role.<br />

Figure 5-1 Application Assembly Tool - New <strong>Security</strong> Role dialog box<br />

5. Click Apply if you wish to add more security roles to the EJB component, or<br />

click OK to close the New <strong>Security</strong> Role dialog box.<br />

Chapter 5. Securing EJBs 75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!