Package org.apache.catalina.startup
Class PasswdUserDatabase
- java.lang.Object
-
- org.apache.catalina.startup.PasswdUserDatabase
-
- All Implemented Interfaces:
UserDatabase
public final class PasswdUserDatabase extends Object implements UserDatabase
Concrete implementation of theUserDatabaseinterface that processes the/etc/passwdfile on a Unix system.- Author:
- Craig R. McClanahan
-
-
Constructor Summary
Constructors Constructor Description PasswdUserDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHome(String user)Return an absolute pathname to the home directory for the specified user.UserConfiggetUserConfig()Return the UserConfig listener with which we are associated.Enumeration<String>getUsers()Return an enumeration of the usernames defined on this server.voidsetUserConfig(UserConfig userConfig)Set the UserConfig listener with which we are associated.
-
-
-
Method Detail
-
getUserConfig
public UserConfig getUserConfig()
Return the UserConfig listener with which we are associated.- Specified by:
getUserConfigin interfaceUserDatabase- Returns:
- the UserConfig listener with which we are associated.
-
setUserConfig
public void setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.- Specified by:
setUserConfigin interfaceUserDatabase- Parameters:
userConfig- The new UserConfig listener
-
getHome
public String getHome(String user)
Return an absolute pathname to the home directory for the specified user.- Specified by:
getHomein interfaceUserDatabase- Parameters:
user- User for which a home directory should be retrieved- Returns:
- an absolute pathname to the home directory for the specified user.
-
getUsers
public Enumeration<String> getUsers()
Return an enumeration of the usernames defined on this server.- Specified by:
getUsersin interfaceUserDatabase- Returns:
- an enumeration of the usernames defined on this server.
-
-