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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3 Assigning EJB method permissions<br />

Session and entity bean methods can be secured by preventing access to all but<br />

members of the security roles that need to access those methods. These method<br />

permissions can be applied using either the Application Assembly Tool or the<br />

<strong>WebSphere</strong> Studio.<br />

The method permissions are included in the application deployment descriptor<br />

file ejb-jar.xml. The following example shows the XML elements which would<br />

allow members of the manager role to call all methods in the BranchAccount<br />

EJB, all Local Home methods in the CustomerAccount EJB, as well as the<br />

create() and remove() methods in the Consultation EJB.<br />

Example 5-1 Method permissions in the ejb-jar.xml file<br />

<br />

manager method permissions:+:<br />

manager<br />

<br />

Consultation<br />

Home<br />

create<br />

<br />

<br />

<br />

BranchAccount<br />

*<br />

<br />

<br />

Consultation<br />

Home<br />

remove<br />

<br />

javax.ejb.Handle<br />

<br />

<br />

<br />

CustomerAccount<br />

LocalHome<br />

*<br />

<br />

<br />

76 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

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

Saved successfully!

Ooh no, something went wrong!