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.

higher level of protection. User Data Constraint allows an application deployer<br />

to introduce such protection.<br />

If global security is enabled, and a security constraint is set for a particular<br />

resource, then the resource is secured.<br />

4.3 Securing Web components<br />

This section presents simple scenarios on how to secure different Web<br />

components. We assume that the roles are defined for the application as in the<br />

ITSOBank sample application.<br />

4.3.1 Static content<br />

Static resources of the enterprise application can be secured only if they are<br />

served by <strong>WebSphere</strong>. <strong>WebSphere</strong> cannot manage access to the static content<br />

that resides on the Web server. All the static content that needs to be protected<br />

by <strong>WebSphere</strong> Application Server must be packaged into the Web module (.war,<br />

Web Archive file). Static HTML pages can be served by the servlet that<br />

implements file serving behavior.<br />

The following instructions show how to set up security constraint to protect static<br />

content for the Web application module using the Application Assembly Tool.<br />

This section will only provide information for the Application Assembly Tool, since<br />

securing static contents within <strong>WebSphere</strong> does not differ from securing dynamic<br />

content in <strong>WebSphere</strong>; the book will provide information for <strong>WebSphere</strong> studio in<br />

the next section, where dynamic components will be secured.<br />

1. Start the Application Assembly Tool and load the ITSOBank sample<br />

enterprise application archive file (itsobank.ear).<br />

2. Expand itsobank -> Web Modules -> itsobankWeb and select <strong>Security</strong><br />

Constraints.<br />

3. Right-click <strong>Security</strong> Constraints and select New, a dialog window New<br />

<strong>Security</strong> Constraint will be opened.<br />

4. Enter the security constraint name Constraints for bank access. Click Add<br />

next to the Roles area. You will be presented with a dialog box listing the<br />

security roles that are defined for your application.<br />

5. Select Everyone and click OK. You should be presented with the following<br />

window.<br />

50 <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!