Custom Authentication compile problems

Document ID : KB000100767
Last Modified Date : 11/06/2018
Show Technical Document Details
Introduction:
I am trying to compile the DefaultAuthenticationModule located at
https://docops.ca.com/ca-identity-manager/14-2/EN/programming/programming-guide-for-java/how-to-customize-identity-manager-authentication/implement-the-authenticationmodule-interface
I am using the support libraries found in, as instructed by the same docops page:
C:\Program Files (x86)\CA\Identity Manager\IAM Suite\Identity Manager\tools\lib
Question:

Unfortunately, I am unable to compile even this sample code with the libraries into that location.
The error I get is: error: cannot find symbol: class AuthenticationModule
Upon further inspecting the jar files in that tools\lib directory, none contain the AuthenticationModule class required.
Which libraries should I use to compile/create an AuthenticationModule?

Answer:

You need to add into your Java Build Path the user_console.jar from the iam_im.ear/user_console.war/WEB-INF/lib.
This jar file includes the AuthenticationModule class you will extend.

You also need to add into your Java Build Path the javax.servlet.http material.
With Jboss, it can be jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar under modules/system/layers/base/javax/servlet/api/main directory or folder.