You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by quanxin zhu <qu...@gmail.com> on 2007/10/10 09:50:34 UTC

How to write a custom realm?

Hi, Everyone,

    Where could I find the document of how to write a custom realm?

   Many Thanks!


zhu

Re: How to write a custom realm?

Posted by quanxin zhu <qu...@gmail.com>.
Thanks Very Much for your help!

2007/10/11, Tim Funk <fu...@joedog.org>:
>
> With any luck - this will be accurate enough:
>
> http://www.jroller.com/funkman/entry/howto_create_a_realm_in
>
> -Tim
>
> > On Wednesday 10 October 2007, quanxin zhu wrote:
> >
> >> Hi, Everyone,
> >>
> >>     Where could I find the document of how to write a custom realm?
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: How to write a custom realm?

Posted by Tim Funk <fu...@joedog.org>.
With any luck - this will be accurate enough:

http://www.jroller.com/funkman/entry/howto_create_a_realm_in

-Tim

> On Wednesday 10 October 2007, quanxin zhu wrote: 
> 
>> Hi, Everyone,
>>
>>     Where could I find the document of how to write a custom realm?


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to write a custom realm?

Posted by Nicholas Sushkin <ns...@openfinance.com>.
You can take a look at Tomcat's own realms in
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/authenticator/

Also, take a look at my AccountLockoutDatasourceRealm at
http://lockout-realm.cvs.sourceforge.net/lockout-realm/lockout-realm/src/com/ofc/tomcat/

Although I don't claim that my code is worthy of emulating ;)


On Wednesday 10 October 2007, quanxin zhu wrote: 

> Hi, Everyone,
>
>     Where could I find the document of how to write a custom realm?
>
>    Many Thanks!
>
>
> zhu

-- 
Nicholas Sushkin, Senior Software Engineer
http://www.openfinance.com http://www.wealthinformationexchange.com

Re: How to write a custom realm?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zhu,

quanxin zhu wrote:
> Where could I find the document of how to write a custom realm?

Realm is just an interface:

http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/Realm.html

Fortunately, there's a RealmBase class that should be able to help you
out significantly.

As for the implementation... that's up to you. Do you need something
that isn't already provided by Tomcat?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDOG79CaO5/Lv0PARAuMLAKCNMb7WJsAcO9jRdOHBFc7eekrWBQCdHgih
AWAzm9zOZ1dRZpDeqANf7LQ=
=adZG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org