|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.Prominic.jFTPd.FTPSecuritySource com.Prominic.jFTPd.FTPAnonSecuritySource
public class FTPAnonSecuritySource
Implements anonymous access security check. Anonymouse user can:
- have access to certain directories
- read or read/write access
- upload access.
Field Summary | |
---|---|
protected boolean |
canDelete
|
protected boolean |
canDownload
|
protected boolean |
canUpload
|
protected boolean |
validateEmail
|
protected java.util.Hashtable |
virtualDirs
|
Fields inherited from class com.Prominic.jFTPd.FTPSecuritySource |
---|
ANONYMOUS_USERNAME |
Constructor Summary | |
---|---|
FTPAnonSecuritySource(java.util.Hashtable dirs)
Createn a security source for an read only anonymous access given the specified directories. |
|
FTPAnonSecuritySource(java.util.Hashtable dirs,
boolean down,
boolean up,
boolean del)
Creates a security source, letting you control various aspects of the anonymous access. |
|
FTPAnonSecuritySource(java.util.Hashtable dirs,
boolean down,
boolean up,
boolean del,
boolean val)
Creates a security source, letting you control various aspects of the anonymous access. |
Method Summary | |
---|---|
boolean |
canDelete(FTPUser user,
java.lang.String path)
Returns true if the user can delete files from the given path. |
boolean |
canDownload(FTPUser user,
java.lang.String path)
Returns true if the user can download files from the given path. |
boolean |
canRename(FTPUser user,
java.lang.String frompath,
java.lang.String topath)
Returns true if the user can rename files from the given path to the given path. |
boolean |
canUpload(FTPUser user,
java.lang.String path)
Implement this if the given user can upload to the specified path. |
FTPUser |
userWithUsernameAndPassword(java.lang.String username,
java.lang.String password)
Returns an FTPUser object for the given username and password. |
Methods inherited from class com.Prominic.jFTPd.FTPSecuritySource |
---|
isAnonymousUsername, isValidEmail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean canUpload
protected boolean canDownload
protected boolean canDelete
protected boolean validateEmail
protected java.util.Hashtable virtualDirs
Constructor Detail |
---|
public FTPAnonSecuritySource(java.util.Hashtable dirs)
dirs
- - home directories.public FTPAnonSecuritySource(java.util.Hashtable dirs, boolean down, boolean up, boolean del)
dirs
- - home directoriesdown
- - set true if the user can download (read access).up
- - set true if the user can upload (write access).del
- - set true if the user can delete filespublic FTPAnonSecuritySource(java.util.Hashtable dirs, boolean down, boolean up, boolean del, boolean val)
dirs
- - home directoriesdown
- - set true if the user can download (read access).up
- - set true if the user can upload (write access).del
- - set true if the user can delete filesval
- - set true if email validation should be done.Method Detail |
---|
public boolean canDelete(FTPUser user, java.lang.String path)
canDelete
in class FTPSecuritySource
user
- - userpath
- - path to be deleted
public boolean canDownload(FTPUser user, java.lang.String path)
canDownload
in class FTPSecuritySource
user
- - userpath
- - path
public boolean canRename(FTPUser user, java.lang.String frompath, java.lang.String topath)
canRename
in class FTPSecuritySource
user
- - userfrompath
- - path to be renamedtopath
- - new path
public boolean canUpload(FTPUser user, java.lang.String path)
FTPSecuritySource
canUpload
in class FTPSecuritySource
user
- - userpath
- - path where upload should be done
public FTPUser userWithUsernameAndPassword(java.lang.String username, java.lang.String password)
userWithUsernameAndPassword
in class FTPSecuritySource
username
- - usernamepassword
- - password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |