com.Prominic.jFTPd
Class FTPUser

java.lang.Object
  extended by com.Prominic.jFTPd.FTPUser

public class FTPUser
extends java.lang.Object

This class represends a user accessing the jFTPd server. It holds informations about the username, password, the virtual directories as well as if the user is anonymous or not.

Author:
Iulian

Field Summary
protected  boolean isAnonymous
           
protected  java.lang.String password
           
protected  java.lang.String username
           
protected  java.util.Hashtable virtualDirs
           
 
Constructor Summary
FTPUser(java.lang.String username, java.lang.String passwd, java.util.Hashtable virtualDirs)
          Default constructor.
FTPUser(java.lang.String uname, java.lang.String passwd, java.util.Hashtable virtualDirs, boolean anon)
          Default constructor.
 
Method Summary
 java.lang.String getPassword()
          Gets the user's password.
 java.lang.String getUsername()
          Gets the user name.
 java.util.Hashtable getVirtualDirectories()
          Gets the user's virtual directories.
 boolean isAnonymous()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

protected java.lang.String username

password

protected java.lang.String password

virtualDirs

protected java.util.Hashtable virtualDirs

isAnonymous

protected boolean isAnonymous
Constructor Detail

FTPUser

public FTPUser(java.lang.String username,
               java.lang.String passwd,
               java.util.Hashtable virtualDirs)
Default constructor. Creates an FTPUser given the username and password as well as a list of virtualDirectories. These informations should be read from the configuration file. It is asumed that the FTPUser is not anonymous.

Parameters:
username - - username
passwd - - password
virtualDirs - - virtual directories.

FTPUser

public FTPUser(java.lang.String uname,
               java.lang.String passwd,
               java.util.Hashtable virtualDirs,
               boolean anon)
Default constructor. Creates an FTPUser given the username and password as well as a list of virtualDirectories. These informations should be read from the configuration file.

Parameters:
uname - - username
passwd - - password
virtualDirs - - virtual directories.
anon - - set true for the username to be anonymous.
Method Detail

getPassword

public java.lang.String getPassword()
Gets the user's password.

Returns:
the user's password.

getUsername

public java.lang.String getUsername()
Gets the user name.

Returns:
user name.

getVirtualDirectories

public java.util.Hashtable getVirtualDirectories()
Gets the user's virtual directories.

Returns:
virtual directories.

isAnonymous

public boolean isAnonymous()
Returns:
true if the FTPUser is anonymous.