Creating J2C authentication data

In WebSphere® Application Server, you can secure your enterprise information system by creating J2C authentication data.

Before you begin

To create J2C authentication data, you work in the WebSphere Integrated Solutions Console. Log in to the console as explained in Before you start: Opening the administration console.

About this task

After you have created your data source and connection pool, you create the J2C authentication data. J2C is a secure mechanism for integrating enterprise information systems to an application server and enterprise applications.

Procedure

  1. In the WebSphere Integrated Solutions Console, open Resources  > JDBC > Data sources.
  2. In the table, click the name of the data source that you created in Creating a data source and connection pool.

    Click the link, do not just select the check box.

    For example, click Rule Execution Server datasource.

  3. Under Related Items, click JAAS - J2C authentication data.
  4. In the next panel, click New and provide the database administrator credentials in the Alias, User ID, and Password fields.
    For Linux on z Systems®, provide the DB2® credentials. For a Derby database, provide the following credentials:
    • Alias: ResDerbyUser
    • User ID: resdbUser
    • Password: resdbUser
  5. Click Apply and Save to save directly to the master configuration.
  6. Again, open Resources  > JDBC > Data sources and click your data source name, Rule Execution Server datasource in this example.
  7. Under Security settings, for Component-managed authentication alias, select the <NodeName>/ResDerbyUser alias.

    <NodeName> is the name of the WebSphere Application Server node on which you are configuring Rule Execution Server.

  8. For Container-managed authentication alias, select <NodeName>/ResDerbyUser.
  9. Click Apply and Save to save directly to the master configuration.