|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.usermanager.UserFactory
public class UserFactory
Factory for User
instances.
Constructor Summary | |
---|---|
UserFactory()
|
Method Summary | |
---|---|
User |
createUser()
Creates a user based on the configuration set on the factory |
List<? extends Authority> |
getAuthorities()
Get the authorities for users created by this factory |
String |
getHomeDirectory()
Get the home directory for users created by this factory |
int |
getMaxIdleTime()
Get the max idle time for users created by this factory |
String |
getName()
Get the user name for users created by this factory |
String |
getPassword()
Get the password for users created by this factory |
boolean |
isEnabled()
Get the enabled status for users created by this factory |
void |
setAuthorities(List<Authority> authorities)
Set the authorities for users created by this factory |
void |
setEnabled(boolean isEnabled)
Get the enabled status for users created by this factory |
void |
setHomeDirectory(String homeDir)
Set the user name for users created by this factory |
void |
setMaxIdleTime(int maxIdleTimeSec)
Set the user name for users created by this factory |
void |
setName(String name)
Set the user name for users created by this factory |
void |
setPassword(String password)
Set the user name for users created by this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserFactory()
Method Detail |
---|
public User createUser()
public String getName()
public void setName(String name)
name
- The user namepublic String getPassword()
public void setPassword(String password)
password
- The passwordpublic int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTimeSec)
maxIdleTimeSec
- The max idle time in secondspublic String getHomeDirectory()
public void setHomeDirectory(String homeDir)
homeDir
- The home directory pathpublic boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- true if the user should be enabled (allowed to log in)public List<? extends Authority> getAuthorities()
public void setAuthorities(List<Authority> authorities)
authorities
- The authorities
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |