Package org.apache.catalina.startup
Interface UserDatabase
-
- All Known Implementing Classes:
HomesUserDatabase,PasswdUserDatabase
public interface UserDatabaseAbstraction of the set of users defined by the operating system on the current server platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHome(java.lang.String user)Return an absolute pathname to the home directory for the specified user.UserConfiggetUserConfig()Return the UserConfig listener with which we are associated.java.util.Enumeration<java.lang.String>getUsers()Return an enumeration of the usernames defined on this server.voidsetUserConfig(UserConfig userConfig)Set the UserConfig listener with which this UserDatabase is associated.
-
-
-
Method Detail
-
getUserConfig
UserConfig getUserConfig()
Return the UserConfig listener with which we are associated.- Returns:
- the UserConfig listener
-
setUserConfig
void setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which this UserDatabase is associated.- Parameters:
userConfig- The new UserConfig listener
-
getHome
java.lang.String getHome(java.lang.String user)
Return an absolute pathname to the home directory for the specified user.- Parameters:
user- User for which a home directory should be retrieved- Returns:
- the home directory path
-
getUsers
java.util.Enumeration<java.lang.String> getUsers()
Return an enumeration of the usernames defined on this server.- Returns:
- the enumeration of usernames
-
-