com.imaginary.lwp
Class JDBCAuthenticator

java.lang.Object
  |
  +--com.imaginary.lwp.JDBCAuthenticator

public class JDBCAuthenticator
extends java.lang.Object
implements Authenticator

Implements the Authenticator interface to authenticate a user ID/password against values stored in a database. This class expects the following table structure:

LWP_USER
USER_ID (VARCHAR(25))
PASSWORD (VARCHAR(25))
If you want a more complex authentication scheme, you should write your own Authenticator implementation.
Last modified $Date: 1999/10/06 21:08:56 $

Version:
$Revision: 1.2 $
Author:
George Reese (borg@imaginary.com)

Field Summary
static java.lang.String SELECT
          The SQL SELECT statement.
 
Constructor Summary
JDBCAuthenticator()
           
 
Method Summary
 void authenticate(java.lang.String uid, java.lang.String pw)
          Authenticates the specified user ID against the specified password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

public static final java.lang.String SELECT
The SQL SELECT statement.
Constructor Detail

JDBCAuthenticator

public JDBCAuthenticator()
Method Detail

authenticate

public void authenticate(java.lang.String uid,
                         java.lang.String pw)
                  throws AuthenticationException
Authenticates the specified user ID against the specified password.
Specified by:
authenticate in interface Authenticator
Parameters:
uid - the user ID to authenticate
pw - the password to use for authentication
Throws:
AuthenticationException - the user ID failed to authenticate against the specified password