public interface UserManager
Modifier and Type | Method and Description |
---|---|
User |
authenticate(Authentication authentication)
Authenticate user
|
void |
delete(String username)
Delete the user from the system.
|
boolean |
doesExist(String username)
Check if the user exists.
|
String |
getAdminName()
Get admin user name
|
String[] |
getAllUserNames()
Get all user names in the system.
|
User |
getUserByName(String username)
Get user by name.
|
boolean |
isAdmin(String username)
Check if the user is admin.
|
void |
save(User user)
Save user.
|
User getUserByName(String username) throws FtpException
username
- the name to search for.FtpException
- when the UserManager can't fulfill the request.String[] getAllUserNames() throws FtpException
FtpException
- when the UserManager can't fulfill the request.void delete(String username) throws FtpException
username
- The name of the User
to deleteFtpException
- when the UserManager can't fulfill the request.UnsupportedOperationException
- if UserManager in read-only modevoid save(User user) throws FtpException
user
- the Uset to saveFtpException
- when the UserManager can't fulfill the request.UnsupportedOperationException
- if UserManager in read-only modeboolean doesExist(String username) throws FtpException
username
- the name of the user to check.FtpException
User authenticate(Authentication authentication) throws AuthenticationFailedException
authentication
- The Authentication
that proves the users identityAuthenticationFailedException
FtpException
- when the UserManager can't fulfill the request.String getAdminName() throws FtpException
FtpException
- when the UserManager can't fulfill the request.boolean isAdmin(String username) throws FtpException
username
- The name of the User
to checkFtpException
- when the UserManager can't fulfill the request.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.