|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.usermanager.PropertiesUserManagerFactory
public class PropertiesUserManagerFactory
Factory for the properties file based UserManager
implementation.
Constructor Summary | |
---|---|
PropertiesUserManagerFactory()
|
Method Summary | |
---|---|
UserManager |
createUserManager()
Creates a PropertiesUserManager instance based on the provided configuration |
String |
getAdminName()
Get the admin name. |
File |
getFile()
Retrieve the file used to load and store users |
PasswordEncryptor |
getPasswordEncryptor()
Retrieve the password encryptor used by user managers created by this factory |
URL |
getUrl()
Retrieve the URL used to load and store users |
void |
setAdminName(String adminName)
Set the name to use as the administrator of the server. |
void |
setFile(File propFile)
Set the file used to store and read users. |
void |
setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
Set the password encryptor to use by user managers created by this factory |
void |
setUrl(URL userDataURL)
Set the URL used to store and read users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesUserManagerFactory()
Method Detail |
---|
public UserManager createUserManager()
PropertiesUserManager
instance based on the provided configuration
createUserManager
in interface UserManagerFactory
UserManager
public String getAdminName()
public void setAdminName(String adminName)
adminName
- The administrator user namepublic File getFile()
public void setFile(File propFile)
propFile
- A file containing userspublic URL getUrl()
URL
public void setUrl(URL userDataURL)
userDataURL
- A URL
containing userspublic PasswordEncryptor getPasswordEncryptor()
Md5PasswordEncryptor
if no other has been providedpublic void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
passwordEncryptor
- The password encryptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |