Hi,

can someone provide me code for calling JAASRealm programmaticaly ?

I do something like this, but it fails:
   org.apache.catalina.realm.JAASRealm realm = new
org.apache.catalina.realm.JAASRealm();
   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.

Reply via email to