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

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     
     
    org.apache.ftpserver.ftplet.User
     
    void
    save(org.apache.ftpserver.ftplet.User arg0)
     

    Methods inherited from class org.apache.ftpserver.usermanager.impl.AbstractUserManager

    getAdminName, getPasswordEncryptor, isAdmin

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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