org.mule.providers.ftp.server
Class InMemoryUserManager

java.lang.Object
  extended by AbstractUserManager
      extended by org.mule.providers.ftp.server.InMemoryUserManager

public class InMemoryUserManager
extends AbstractUserManager

This class is needed to avoid creating unnesessary configuration files while running ftp transport tests. Based on org.apache.ftpserver.usermanager.PropertiesUserManager


Constructor Summary
InMemoryUserManager()
           
 
Method Summary
 User authenticate(Authentication authentication)
          User authenticate method
 void delete(String login)
          Delete an user.
 boolean doesExist(String name)
          User existance check
 String[] getAllUserNames()
          Get all user names.
 User getUserByName(String userName)
          Load user data.
 void save(User user)
          Save user data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryUserManager

public InMemoryUserManager()
Method Detail

getUserByName

public User getUserByName(String userName)
Load user data.


getAllUserNames

public String[] getAllUserNames()
Get all user names.


delete

public void delete(String login)
Delete an user. Removes all this user entries from the properties. After removing the corresponding from the properties, save the data.


save

public void save(User user)
Save user data. Store the properties.


doesExist

public boolean doesExist(String name)
User existance check


authenticate

public User authenticate(Authentication authentication)
                  throws AuthenticationFailedException
User authenticate method

Throws:
AuthenticationFailedException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.