public class VfsUserManager extends UserProps implements org.apache.ftpserver.ftplet.UserManager
| Modifier and Type | Field and Description |
|---|---|
protected UserProps |
admin |
protected String |
adminName |
protected String |
anonymousName |
protected String |
anonymousPwd |
protected VfsAuthenticator |
authenticator |
protected String |
vfsHomePath |
downloadRate, maxIdleTime, maxLogin, maxLoginPerIp, uploadRate, writePermission| Constructor and Description |
|---|
VfsUserManager() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.ftpserver.ftplet.User |
authenticate(org.apache.ftpserver.ftplet.Authentication authentication) |
void |
delete(String login) |
boolean |
doesExist(String login)
There is no way of knowing if a user exists until authentication is done.
|
UserProps |
getAdmin() |
String |
getAdminName() |
String[] |
getAllUserNames() |
String |
getAnonymousName() |
String |
getAnonymousPwd() |
VfsAuthenticator |
getAuthenticator() |
org.apache.ftpserver.ftplet.User |
getUserByName(String login) |
String |
getVfsHomePath()
The home path is the path to the home directory of the user.
|
boolean |
isAdmin(String login) |
void |
save(org.apache.ftpserver.ftplet.User user) |
void |
setAdmin(UserProps admin) |
void |
setAdminName(String adminName) |
void |
setAnonymousName(String anonymousName) |
void |
setAnonymousPwd(String anonymousPwd) |
void |
setAuthenticator(VfsAuthenticator authenticator) |
void |
setVfsHomePath(String vfsHomePath)
Sets the home path of the user.
|
getDownloadRate, getMaxIdleTime, getMaxLogin, getMaxLoginPerIp, getUploadRate, isWritePermission, setDownloadRate, setMaxIdleTime, setMaxLogin, setMaxLoginPerIp, setUploadRate, setWritePermissionprotected String vfsHomePath
protected VfsAuthenticator authenticator
protected String adminName
protected String anonymousName
protected String anonymousPwd
protected UserProps admin
public String getVfsHomePath()
public void setVfsHomePath(String vfsHomePath)
vfsHomePath - public VfsAuthenticator getAuthenticator()
public void setAuthenticator(VfsAuthenticator authenticator)
public String getAdminName()
getAdminName in interface org.apache.ftpserver.ftplet.UserManagerpublic void setAdminName(String adminName)
public String getAnonymousName()
public void setAnonymousName(String anonymousName)
public String getAnonymousPwd()
public void setAnonymousPwd(String anonymousPwd)
public UserProps getAdmin()
public void setAdmin(UserProps admin)
public org.apache.ftpserver.ftplet.User authenticate(org.apache.ftpserver.ftplet.Authentication authentication)
throws org.apache.ftpserver.ftplet.AuthenticationFailedException
authenticate in interface org.apache.ftpserver.ftplet.UserManagerorg.apache.ftpserver.ftplet.AuthenticationFailedExceptionpublic void delete(String login) throws org.apache.ftpserver.ftplet.FtpException
delete in interface org.apache.ftpserver.ftplet.UserManagerorg.apache.ftpserver.ftplet.FtpExceptionpublic boolean doesExist(String login)
doesExist in interface org.apache.ftpserver.ftplet.UserManagerpublic String[] getAllUserNames() throws org.apache.ftpserver.ftplet.FtpException
getAllUserNames in interface org.apache.ftpserver.ftplet.UserManagerorg.apache.ftpserver.ftplet.FtpExceptionpublic org.apache.ftpserver.ftplet.User getUserByName(String login)
getUserByName in interface org.apache.ftpserver.ftplet.UserManagerpublic boolean isAdmin(String login)
isAdmin in interface org.apache.ftpserver.ftplet.UserManagerpublic void save(org.apache.ftpserver.ftplet.User user)
throws org.apache.ftpserver.ftplet.FtpException
save in interface org.apache.ftpserver.ftplet.UserManagerorg.apache.ftpserver.ftplet.FtpExceptionCopyright © 2008–2020. All rights reserved.