public class UserManagerImpl extends Object implements org.apache.ftpserver.ftplet.UserManager
UserManager that is registered to an FTP server and performs user authorization.| Constructor and Description |
|---|
UserManagerImpl(SecurityManager securityManager) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.ftpserver.ftplet.User |
authenticate(org.apache.ftpserver.ftplet.Authentication authentication) |
protected FtpUser |
createUser(String userName,
Subject subject) |
void |
delete(String usrName) |
boolean |
doesExist(String name) |
String |
getAdminName() |
String[] |
getAllUserNames() |
org.apache.ftpserver.ftplet.User |
getUserByName(String userName) |
boolean |
isAdmin(String username) |
void |
save(org.apache.ftpserver.ftplet.User user) |
void |
setKarafLocalRoles(String roles) |
void |
setUploadDirectory(String directoryPath) |
public UserManagerImpl(SecurityManager securityManager)
public void save(org.apache.ftpserver.ftplet.User user)
save in interface org.apache.ftpserver.ftplet.UserManagerpublic void delete(String usrName) throws org.apache.ftpserver.ftplet.FtpException
delete in interface org.apache.ftpserver.ftplet.UserManagerorg.apache.ftpserver.ftplet.FtpExceptionpublic String[] getAllUserNames()
getAllUserNames in interface org.apache.ftpserver.ftplet.UserManagerpublic org.apache.ftpserver.ftplet.User getUserByName(String userName)
getUserByName in interface org.apache.ftpserver.ftplet.UserManagerpublic boolean doesExist(String name)
doesExist in interface org.apache.ftpserver.ftplet.UserManagerpublic org.apache.ftpserver.ftplet.User authenticate(org.apache.ftpserver.ftplet.Authentication authentication)
throws org.apache.ftpserver.ftplet.AuthenticationFailedException
authenticate in interface org.apache.ftpserver.ftplet.UserManagerauthentication - The Authentication that proves the users identity. AnonymousAuthentication is not permittedUser upon successful authorizationorg.apache.ftpserver.ftplet.AuthenticationFailedException - upon unsuccessful authorizationpublic String getAdminName()
getAdminName in interface org.apache.ftpserver.ftplet.UserManagerpublic boolean isAdmin(String username)
isAdmin in interface org.apache.ftpserver.ftplet.UserManagerpublic void setUploadDirectory(String directoryPath)
public void setKarafLocalRoles(String roles)
This work is licensed under a Creative Commons Attribution 4.0 International License.