|
||||||||||
| 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 |
java.util.List<? extends Authority> |
getAuthorities()
Get the authorities for users created by this factory |
java.lang.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 |
java.lang.String |
getName()
Get the user name for users created by this factory |
java.lang.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(java.util.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(java.lang.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(java.lang.String name)
Set the user name for users created by this factory |
void |
setPassword(java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
name - The user namepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The passwordpublic int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTimeSec)
maxIdleTimeSec - The max idle time in secondspublic java.lang.String getHomeDirectory()
public void setHomeDirectory(java.lang.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 java.util.List<? extends Authority> getAuthorities()
public void setAuthorities(java.util.List<Authority> authorities)
authorities - The authorities
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||