* @author <a href="http://mina.apache.org">Apache MINA Project</a>*
*/
public class ManagingUsers {
public static void main(String[] args) throws Exception {
PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory();
userManagerFactory.setFile(new File("myusers.properties"));
userManagerFactory.setPasswordEncryptor(new SaltedPasswordEncryptor());
UserManager um = userManagerFactory.createUserManager();
UserFactory userFact = new UserFactory();
userFact.setName("myNewUser");
userFact.setPassword("secret");
userFact.setHomeDirectory("ftproot");