|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.usermanager.BaseUser
public class BaseUser
Generic user class. The user attributes are:
Constructor Summary | |
---|---|
BaseUser()
Default constructor. |
|
BaseUser(User user)
Copy constructor. |
Method Summary | |
---|---|
AuthorizationRequest |
authorize(AuthorizationRequest request)
|
Authority[] |
getAuthorities()
|
Authority[] |
getAuthorities(java.lang.Class<? extends Authority> clazz)
|
boolean |
getEnabled()
Get the user enable status. |
java.lang.String |
getHomeDirectory()
Get the user home directory. |
int |
getMaxIdleTime()
Get the maximum idle time in second. |
java.lang.String |
getName()
Get the user name. |
java.lang.String |
getPassword()
Get the user password. |
void |
setAuthorities(Authority[] authorities)
|
void |
setEnabled(boolean enb)
Set the user enable status. |
void |
setHomeDirectory(java.lang.String home)
Set the user home directory. |
void |
setMaxIdleTime(int idleSec)
Set the maximum idle time in second. |
void |
setName(java.lang.String name)
Set user name. |
void |
setPassword(java.lang.String pass)
Set user password. |
java.lang.String |
toString()
String representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseUser()
public BaseUser(User user)
Method Detail |
---|
public java.lang.String getName()
getName
in interface User
public void setName(java.lang.String name)
public java.lang.String getPassword()
getPassword
in interface User
public void setPassword(java.lang.String pass)
public Authority[] getAuthorities()
getAuthorities
in interface User
public void setAuthorities(Authority[] authorities)
public int getMaxIdleTime()
getMaxIdleTime
in interface User
public void setMaxIdleTime(int idleSec)
public boolean getEnabled()
getEnabled
in interface User
public void setEnabled(boolean enb)
public java.lang.String getHomeDirectory()
getHomeDirectory
in interface User
public void setHomeDirectory(java.lang.String home)
public java.lang.String toString()
toString
in class java.lang.Object
public AuthorizationRequest authorize(AuthorizationRequest request)
authorize
in interface User
public Authority[] getAuthorities(java.lang.Class<? extends Authority> clazz)
getAuthorities
in interface User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |