Steps to Implement a LoginModule

About this task

The steps required to implement and test a new LoginModule follow. Please reference the SampleLoginModule and other files described in the JAAS Reference Guide for examples of what may be done for the various steps.

Procedure

  1. Step 1: Understand the Authentication Technology.
  2. Name the LoginModule implementation.

    Decide on the proper package and class name for your LoginModule.

    For example, a LoginModule developed by IBM might be called com.ibm.auth.Module where com.ibm.auth is the package name and Module is the name of the LoginModule class implementation.

  3. Step 3: Implement the Abstract LoginModule Methods
  4. Either choose an existing sample application for your testing, or write a new one.

    See JAAS Reference Guide for information about application requirements and a sample application you can use for your testing.

  5. Compile your new LoginModule and the application you will use for testing.
  6. Step 6: Prepare for Testing
  7. Step 7: Test Use of the LoginModule
  8. Step 8: Document Your LoginModuleImplementation
  9. Make your LoginModule JAR File and documents available to clients.