form-based authentication with dynamically computed credentials

2005-01-10 Thread Charlton_Rose
I wish to use form-based authentication that accepts users with the 
following credentials:

username = any string (ex.: test)
password = length of username (ex: 4)

This is a silly security system, I admit.  However, a solution to this 
problem will help me to solve my *real* problem.

Obviously, a database of any sort is inappropriate, since there are 
infinitely many valid credentials, and unnecessary, since the password can 
be computed from the username.

After reading through the archives, I have the impression that I must 
implement a custom realm.  Where can I go to learn how this is done?

Hints greatly appreciated.

sources for servlet-api.jar

2004-11-08 Thread Charlton_Rose
I am trying to obtain sources for servlet-api.jar, but all my searching 
around on the web, including Sun's site, has failed to turn up what I'm 
looking for.  Do you know where to look?