edu.rice.rubis.beans.servlets
Class Auth

java.lang.Object
  |
  +--edu.rice.rubis.beans.servlets.Auth

public class Auth
extends java.lang.Object

This class is not a servlet but it provides user authentication services to servlets.

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Constructor Summary
Auth(javax.naming.Context context, ServletPrinter printer)
          Creates a new Auth instance.
 
Method Summary
 int authenticate(java.lang.String name, java.lang.String password)
          Describe authenticate method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Auth

public Auth(javax.naming.Context context,
            ServletPrinter printer)
Creates a new Auth instance.
Parameters:
context - a Context value
printer - a ServletPrinter value
Method Detail

authenticate

public int authenticate(java.lang.String name,
                        java.lang.String password)
Describe authenticate method here.
Parameters:
name - user nick name
password - user password
Returns:
an int value corresponding to the user id or -1 on error


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.