Package org.apache.ftpserver.usermanager

Examples of org.apache.ftpserver.usermanager.PropertiesUserManager


        NioListener listener = new NioListener();
        listener.setPort(port);
        context.setListener("default", listener);

        PropertiesUserManager userManager = new PropertiesUserManager();
        userManager.setAdminName("admin");
        userManager.setPasswordEncryptor(new ClearTextPasswordEncryptor());
        userManager.setFile(USERS_FILE);
        userManager.configure();

        context.setUserManager(userManager);

        return new FtpServer(context);
    }
View Full Code Here

TOP

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

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.