Package com.logicaldoc.ftp
Class FtpUserManager
java.lang.Object
org.apache.ftpserver.usermanager.impl.AbstractUserManager
com.logicaldoc.ftp.FtpUserManager
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.UserManager
public class FtpUserManager
extends org.apache.ftpserver.usermanager.impl.AbstractUserManager
Our own implementation to integrate the LogicalDOC's authentication
mechanism.
- Since:
- 8.0
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from class org.apache.ftpserver.usermanager.impl.AbstractUserManager
ATTR_ENABLE, ATTR_HOME, ATTR_LOGIN, ATTR_MAX_DOWNLOAD_RATE, ATTR_MAX_IDLE_TIME, ATTR_MAX_LOGIN_NUMBER, ATTR_MAX_LOGIN_PER_IP, ATTR_MAX_UPLOAD_RATE, ATTR_PASSWORD, ATTR_WRITE_PERM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ftpserver.ftplet.User
authenticate
(org.apache.ftpserver.ftplet.Authentication authentication) void
boolean
String[]
org.apache.ftpserver.ftplet.User
getUserByName
(String username) void
save
(org.apache.ftpserver.ftplet.User arg0) Methods inherited from class org.apache.ftpserver.usermanager.impl.AbstractUserManager
getAdminName, getPasswordEncryptor, isAdmin
-
Constructor Details
-
FtpUserManager
public FtpUserManager()
-
-
Method Details
-
authenticate
public org.apache.ftpserver.ftplet.User authenticate(org.apache.ftpserver.ftplet.Authentication authentication) throws org.apache.ftpserver.ftplet.AuthenticationFailedException - Throws:
org.apache.ftpserver.ftplet.AuthenticationFailedException
-
delete
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
doesExist
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
getAllUserNames
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
getUserByName
public org.apache.ftpserver.ftplet.User getUserByName(String username) throws org.apache.ftpserver.ftplet.FtpException - Throws:
org.apache.ftpserver.ftplet.FtpException
-
save
public void save(org.apache.ftpserver.ftplet.User arg0) throws org.apache.ftpserver.ftplet.FtpException - Throws:
org.apache.ftpserver.ftplet.FtpException
-