Configure JAAS aliases for resource authentication

The Java Authentication and Authorization Service (JAAS) version 1.0 extends the Java 2 Security Architecture of the Java 2 Platform with additional support for authentication and for enforcing access control upon users. The development environment supports the JAAS architecture and extends the access control architecture to support role-based authorization for J2EE resources including servlet, JSP, and EJB components. JAAS maps an authenticated WebSphere user identity to a set of user authentication data (user ID and password) for a specified back-end Enterprise Information System (EIS).

To add JAAS authentication, follow these steps:

  1. Switch to the J2EE Perspective.

  2. In the Project Explorer view, expand the Enterprise Applications folder.

  3. Under the enterprise application project folder for which you want to add JAAS authentication (Chapter4EAR), double-click the Deployment Descriptor to open the Application Deployment Descriptor editor.

  4. Select the Deployment tab at the bottom of the editor.

  5. Expand the Authentication section.

  6. Click the Add button beside the JAAS authentication entries list table. The Add JAAS Authentication Entry dialog box opens.

  7. In the dialog box, fill in an Alias, User id, Password, and Description for the authentication entry. For example, you could enter the alias, DB2 User id, and DB2 Password to access a DB2 database:

    Alias: db2user

    User id: db2admin

    Password: [your DB2 password]

    Description: Development DB2 User

    Add JAAS Authentication Entry Dialog

  8. Save your changes and close the editor. A JAAS authentication alias has been added to the deployment descriptor files.

Open Modify Data Source dialog, enter the following and click Finish:

Component managed authentication alias: Select db2user.

Add component managed authentication alias to data source

BOOT.BY - Tech Industry News         Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     Free SCJP 5.0 (Tiger) Study Guide     Free Mock Exam Engine     Free SCWCD 1.4 Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free SCBCD 5.0 Study Guide