tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chapoor Chapoor" <chap...@gmail.com>
Subject Re: JAASRealm programmatic call
Date Wed, 10 May 2006 19:37:59 GMT
Please advice.

Any developers from JAASRealm ???




On 5/9/06, Chapoor Chapoor <chapoor@gmail.com> wrote:
>
>  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