Package io.milton.ftp

Class MiltonUser

java.lang.Object
io.milton.ftp.MiltonUser
All Implemented Interfaces:
org.apache.ftpserver.ftplet.User

public class MiltonUser extends Object implements org.apache.ftpserver.ftplet.User
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.ftpserver.ftplet.User
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.apache.ftpserver.ftplet.User
    • getAuthorities

      public List<org.apache.ftpserver.ftplet.Authority> getAuthorities()
      Specified by:
      getAuthorities in interface org.apache.ftpserver.ftplet.User
    • getUser

      public Object getUser()
      Returns:
      - the security implementation specific user object returned by authentication
    • getAuthorities

      public List<org.apache.ftpserver.ftplet.Authority> getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz)
      Specified by:
      getAuthorities in interface org.apache.ftpserver.ftplet.User
    • authorize

      public org.apache.ftpserver.ftplet.AuthorizationRequest authorize(org.apache.ftpserver.ftplet.AuthorizationRequest request)
      Note that real authorisation is done by MiltonFtpFile
      Specified by:
      authorize in interface org.apache.ftpserver.ftplet.User
      Parameters:
      request -
      Returns:
    • getMaxIdleTime

      public int getMaxIdleTime()
      Specified by:
      getMaxIdleTime in interface org.apache.ftpserver.ftplet.User
    • getEnabled

      public boolean getEnabled()
      Specified by:
      getEnabled in interface org.apache.ftpserver.ftplet.User
    • getHomeDirectory

      public String getHomeDirectory()
      Specified by:
      getHomeDirectory in interface org.apache.ftpserver.ftplet.User