|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.usermanager.impl.BaseUser
public class BaseUser
Internal class, do not use directly. Generic user class. The user attributes are:
Constructor Summary | |
---|---|
BaseUser()
Default constructor. |
|
BaseUser(User user)
Copy constructor. |
Method Summary | |
---|---|
AuthorizationRequest |
authorize(AuthorizationRequest request)
Authorize a AuthorizationRequest for this user |
java.util.List<Authority> |
getAuthorities()
Get all authorities granted to this user |
java.util.List<Authority> |
getAuthorities(java.lang.Class<? extends Authority> clazz)
Get authorities of the specified type granted to this user |
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(java.util.List<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 java.util.List<Authority> getAuthorities()
User
getAuthorities
in interface User
public void setAuthorities(java.util.List<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)
AuthorizationRequest
for this user
authorize
in interface User
request
- The AuthorizationRequest
to authorize
public java.util.List<Authority> getAuthorities(java.lang.Class<? extends Authority> clazz)
getAuthorities
in interface User
clazz
- The type of Authority
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |