Package org.apache.ftpserver.usermanager

Examples of org.apache.ftpserver.usermanager.WritePermission


      propertiesUserManager.setPropFileftpUserPropertiesFile );
      BaseUser ftpUser = new BaseUser();
      ftpUser.setName( userName );
      ftpUser.setPassword( password );
      ftpUser.setHomeDirectory( ftpHomeDir.getAbsolutePath() );
      Authority[] auths = { new WritePermission() };
      ftpUser.setAuthorities( auths );
          ftpUser.setEnabledtrue );
          propertiesUserManager.configure();
      propertiesUserManager.save( ftpUser );
     
View Full Code Here


      UserManager userManager = context.getUserManager();
      BaseUser adminUser = new BaseUser();
      adminUser.setName("admin");
      adminUser.setPassword("admin");
      adminUser.setEnabled(true);
      adminUser.setAuthorities(new Authority[] { new WritePermission() });

      Path adminUserHome = new Path(ftpServerRoot, "user/admin");
      adminUser.setHomeDirectory(adminUserHome.toUri().getPath());
      adminUser.setMaxIdleTime(0);
      userManager.save(adminUser);
View Full Code Here

      UserManager userManager = context.getUserManager();
      BaseUser adminUser = new BaseUser();
      adminUser.setName("admin");
      adminUser.setPassword("admin");
      adminUser.setEnabled(true);
      adminUser.setAuthorities(new Authority[] { new WritePermission() });

      Path adminUserHome = new Path(ftpServerRoot, "user/admin");
      adminUser.setHomeDirectory(adminUserHome.toUri().getPath());
      adminUser.setMaxIdleTime(0);
      userManager.save(adminUser);
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.usermanager.WritePermission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.