I don't know exactly what you want to do but here are the sources you are talking about:
For classes from org.jboss.security.* you need to look in jbosssx.jar
The IdentityLoginModule class you mentioned is in package
org.jboss.portal.identity.auth and extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
but the one I found in jbosssx.jar is in package
org.jboss.security.auth.spi and extends org.jboss.security.auth.spi.AbstractServerLoginModule
I need to use the one you mentioned (gave the url for) as I need to use the method getUsernameAndPassword() from class UsernamePasswordLoginModule. Which jar should I use?
Am I missing something?
Thanks a lot.
jbosssx.jar contains stuff for org.jboss.security.*
But I'm wondering what do you mean by "use a method"... UserPasswordLoginModule is an abstract class. What exactly do you want to do?
IdentityLoginModule extends UsernamePasswordLoginModule so the method getUsernameAndPassword() implemented in class UsernamePasswordLoginModule is inherited by IdentityLoginModule.
I want to extend IdentityLoginModule and I want to use the method getUsernameAndPassword() which is implemented in UsernamePasswordLoginModule.
Thanks a lot.
I would propose to build the portal from its sources and use the downloaded thirdparty libraries and the ones from the portal build.
Let's assume you have extracted the portal libs into a directory and defined the following eclipse classpath variables:
JBOSS_PORTAL_LIBS => D:/jBoss/portal-libs.241 JBOSS_THIRDPARTY_LIBS => D:/jBoss/jboss-portal-2.4.1-src/thirdparty
and your .classpath file contains:
<classpathentry kind="var" path="JBOSS_PORTAL_LIBS/portal-identity-lib.jar"/> <classpathentry kind="var" path="JBOSS_THIRDPARTY_LIBS/jbossas/core-libs/lib/jbosssx.jar"/>
the references should be resolved.