tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chapoor Chapoor" <chap...@gmail.com>
Subject JAASRealm programmatic call
Date Tue, 09 May 2006 11:33:45 GMT
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.

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