FTP Server

com.theorem.ftp
Class Authenticate

Object
  |
  +--Authenticate

public abstract class Authenticate
extends Object


Constructor Summary
Authenticate()
           
 
Method Summary
abstract  boolean authorize(String name, String password, String configDir, LogMsg log)
          Authenticate somehow.
abstract  int getTimeout()
          Get the session timeout.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authenticate

public Authenticate()
Method Detail

authorize

public abstract boolean authorize(String name,
                                  String password,
                                  String configDir,
                                  LogMsg log)
Authenticate somehow.

Parameters:
name - Entity name.
password - Entity password.
configDir - Configuration directory for the FTP server.
log - Log object. Usage: log.logMsg(String msg). The server prepends the thread name to the message to track sessions. You can do this by log.logMsg(Thread.currentThread().getName() + msg);
Returns:
true if the entity exists and uses the given password, false otherwise.

getTimeout

public abstract int getTimeout()
Get the session timeout. You may provide a session timeout in milliseconds. This is the time that may elapse between commands (not including transfer times) before the session is automatically logged out.

Returns:
session timeout . A value of 0 means never time out.

FTP Server

Submit a bug report or feature request

Copyright 1998-2001 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.