Package org.apache.ftpserver.ftplet
Interface User
public interface User
Basic user interface.
- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionauthorize(AuthorizationRequest request) Authorize aAuthorizationRequestfor this userGet all authorities granted to this usergetAuthorities(Class<? extends Authority> clazz) Get authorities of the specified type granted to this userbooleanGet the user enable status.Get the user home directoryintGet the maximum idle time in seconds.getName()Get the user name.Get password.
-
Method Details
-
getName
String getName()Get the user name.- Returns:
- The user name, the same used for login
-
getPassword
String getPassword()Get password.- Returns:
- The users password or null if the user manager can not provide the password
-
getAuthorities
Get all authorities granted to this user- Returns:
- All authorities
-
getAuthorities
Get authorities of the specified type granted to this user- Parameters:
clazz- The type ofAuthority- Returns:
- Authorities of the specified class
-
authorize
Authorize aAuthorizationRequestfor this user- Parameters:
request- TheAuthorizationRequestto authorize- Returns:
- A populated AuthorizationRequest if the user was authorized, null otherwise.
-
getMaxIdleTime
int getMaxIdleTime()Get the maximum idle time in seconds. Zero or less idle time means no limit.- Returns:
- The idle time in seconds
-
getEnabled
boolean getEnabled()Get the user enable status.- Returns:
trueif the user is enabled
-
getHomeDirectory
String getHomeDirectory()Get the user home directory- Returns:
- The path to the home directory for the user
-