You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ja...@masterpieces.no on 2003/05/28 21:16:49 UTC

implementing custom JDBCRealm and programmatic authentication

I am considering to implement a custom JDBCRealm.
It should make available a method such as

   boolean authenticate(String username)

perhaps in a custom Principal class.
The method should log in (authenticate) the user and return true,
if user exists (with correct roles), false otherwise.

Can anyone tell me if this would work?
How should I go about to implement such a mechanism?

Best regards
jarla
jarla@netcom.no



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org