tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chapoor Chapoor" <>
Subject JAASRealm programmatic call
Date Tue, 09 May 2006 11:33:45 GMT

can someone provide me code for calling JAASRealm programmaticaly ?

I do something like this, but it fails:
    org.apache.catalina.realm.JAASRealm realm = new
    realm .setAppName("MyApp");
    realm.authenticate("john", "smith");

I know you can specify the JAASRealm in server.xml and let the container
call it, by adding auth-login in web.xml
But now I want to do everything programmaticly, call the
"ContainerAuthenticator" for user authentication on the fly.

Thank you.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message