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
-
-
Constructor Summary
Constructors Constructor Description FtpUserManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.ftpserver.ftplet.User
authenticate(org.apache.ftpserver.ftplet.Authentication authentication)
void
delete(String arg0)
boolean
doesExist(String username)
String[]
getAllUserNames()
org.apache.ftpserver.ftplet.User
getUserByName(String username)
void
save(org.apache.ftpserver.ftplet.User arg0)
-
-
-
Method Detail
-
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
public void delete(String arg0) throws org.apache.ftpserver.ftplet.FtpException
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
doesExist
public boolean doesExist(String username) throws org.apache.ftpserver.ftplet.FtpException
- Throws:
org.apache.ftpserver.ftplet.FtpException
-
getAllUserNames
public String[] getAllUserNames() throws org.apache.ftpserver.ftplet.FtpException
- 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
-
-