public class FtpUser extends Object implements org.apache.ftpserver.ftplet.User
| Constructor and Description |
|---|
FtpUser()
Instantiates a new ftp user.
|
FtpUser(org.genesys.blocks.security.model.BasicUser<?> user)
Instantiates a new ftp user.
|
FtpUser(String username)
Instantiates a new ftp user.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.ftpserver.ftplet.AuthorizationRequest |
authorize(org.apache.ftpserver.ftplet.AuthorizationRequest request) |
List<? extends org.apache.ftpserver.ftplet.Authority> |
getAuthorities() |
List<? extends org.apache.ftpserver.ftplet.Authority> |
getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz) |
boolean |
getEnabled() |
String |
getHomeDirectory() |
int |
getMaxIdleTime() |
String |
getName() |
String |
getPassword() |
void |
setAuthorities(List<? extends org.apache.ftpserver.ftplet.Authority> authorities)
Sets the authorities.
|
void |
setEnabled(boolean enabled)
Sets the enabled.
|
void |
setHomeDirectory(String homeDirectory)
Sets the home directory.
|
void |
setMaxIdleTime(int maxIdleTime)
Sets the max idle time.
|
void |
setName(String name)
Sets the name.
|
void |
setPassword(String password)
Sets the password.
|
public FtpUser()
public FtpUser(String username)
username - the usernamepublic FtpUser(org.genesys.blocks.security.model.BasicUser<?> user)
user - the userpublic String getName()
getName in interface org.apache.ftpserver.ftplet.Userpublic String getPassword()
getPassword in interface org.apache.ftpserver.ftplet.Userpublic List<? extends org.apache.ftpserver.ftplet.Authority> getAuthorities()
getAuthorities in interface org.apache.ftpserver.ftplet.Userpublic List<? extends org.apache.ftpserver.ftplet.Authority> getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz)
getAuthorities in interface org.apache.ftpserver.ftplet.Userpublic org.apache.ftpserver.ftplet.AuthorizationRequest authorize(org.apache.ftpserver.ftplet.AuthorizationRequest request)
authorize in interface org.apache.ftpserver.ftplet.Userpublic int getMaxIdleTime()
getMaxIdleTime in interface org.apache.ftpserver.ftplet.Userpublic boolean getEnabled()
getEnabled in interface org.apache.ftpserver.ftplet.Userpublic String getHomeDirectory()
getHomeDirectory in interface org.apache.ftpserver.ftplet.Userpublic final void setName(String name)
name - the name to setpublic final void setPassword(String password)
password - the password to setpublic final void setAuthorities(List<? extends org.apache.ftpserver.ftplet.Authority> authorities)
authorities - the authorities to setpublic final void setMaxIdleTime(int maxIdleTime)
maxIdleTime - the maxIdleTime to setpublic final void setEnabled(boolean enabled)
enabled - the enabled to setpublic final void setHomeDirectory(String homeDirectory)
homeDirectory - the homeDirectory to setCopyright © 2018 Global Crop Diversity Trust. All rights reserved.