package noriega.expresso.server;
import noriega.expresso.structures.*;
/*
* Copyright (c) 1999 Noriega
*
* $Author: ngreen $
* $Date: 1999/04/07 03:37:29 $
* $Id: Authenticator.java,v 1.3 1999/04/07 03:37:29 ngreen Exp $
*/
/**
* Used by ExpressoServerImpl
for authentication purposes.
* Right now, does an extremely simple username/password in-the-clear
* authentication. The authenticate()
method is static
* and this class need not be instantiated.
*
* @author $Author: ngreen $
* Date: $Date: 1999/04/07 03:37:29 $
*/
public class Authenticator {
// ------------ METHODS ------------
/** Authenticate a user
* @param username the username to authenticate
* @param password the password to authenticate
* @param user the User
object to authenticate against
* @return true
if the user is authenticated, else
* false
*/
public static boolean authenticate (String username,
String password,
User user) {
return (username.equals(user.getUsername()) &&
password.equals(user.getPassword()));
}
}
/*
* Version Control Log:
* $Log: Authenticator.java,v $
* Revision 1.3 1999/04/07 03:37:29 ngreen
* full javadoc
*
* Revision 1.2 1999/04/06 17:40:05 ngreen
* major rmi-related bug fixes; rmi now up and running
*
* Revision 1.1 1999/03/29 03:40:10 ngreen
* initial checkin
*
*/