Class 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

      Constructors 
      Constructor Description
      FtpUserManager()  
    • Constructor Detail

      • FtpUserManager

        public FtpUserManager()
    • 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