Creating J2C authentication data

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

About this task

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

For a Derby database, if the connect command does not contain the user ID, the user ID and password are the default values APP and APP. If you create the tables under the APP schema, you do not need to do this procedure.

Procedure

  1. In the WebSphere Integrated Solutions Console, open Resources > JDBC > Data sources.
  2. Click the name of your data source.
  3. Under Related Items, click JAAS - J2C authentication data.
  4. On the Data sources page, click New and set the fields Alias, User ID, and Password.
    • For example, for Derby use the following values:
      • Alias: DCDBUser
      • User ID: dcdbUser
      • Password: dcdbUser
    • For DB2®, provide the DB2 Administrator's credentials in the User ID and Password fields.
  5. Click Apply and then click Save to save directly to the master configuration.
  6. Open Resources > JDBC and Data sources and click the name of your data source.
  7. Under Security settings, for Component-managed authentication alias, select the <NodeName>/DCDBUser alias, where <NodeName> is the name of the WebSphere Application Server node on which you are configuring Decision Center.
  8. For Container-managed authentication alias, select <NodeName>/DCDBUser.
  9. Click Apply and then click Save to save directly to the master configuration.