UserDatabase interface that processes the /etc/passwd file
on a Unix system.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | homes
The set of home directories for all defined users, keyed by user name. |
| private static final Log | |
| private static final String | PASSWORD_FILE
The pathname of the Unix password file. |
| private static final StringManager | |
| private UserConfig | userConfig
The UserConfig listener with which we are associated. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getHome(String
User for which a home directory should be retrieved user)Implements org. Return an absolute pathname to the home directory for the specified user. |
| public UserConfig | getUserConfig()
Implements org. Return the UserConfig listener with which we are associated. |
| public Enumeration | getUsers()
Implements org. Return an enumeration of the user names defined on this server. |
| private void | |
| public void | setUserConfig(UserConfig
The new UserConfig listener userConfig)Implements org. Set the UserConfig listener with which we are associated. |
| homes | back to summary |
|---|---|
| private final Map<String, String> homes The set of home directories for all defined users, keyed by user name. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| PASSWORD_FILE | back to summary |
|---|---|
| private static final String PASSWORD_FILE The pathname of the Unix password file. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| userConfig | back to summary |
|---|---|
| private UserConfig userConfig The UserConfig listener with which we are associated. | |
| PasswdUserDatabase | back to summary |
|---|---|
| public PasswdUserDatabase() | |
| getHome | back to summary |
|---|---|
| public String getHome(String user) Implements org. Return an absolute pathname to the home directory for the specified user.
| |
| getUserConfig | back to summary |
|---|---|
| public UserConfig getUserConfig() Implements org. Return the UserConfig listener with which we are associated.
| |
| getUsers | back to summary |
|---|---|
| public Enumeration Implements org. Return an enumeration of the user names defined on this server.
| |
| init | back to summary |
|---|---|
| private void init() Initialize our set of users and home directories. | |
| setUserConfig | back to summary |
|---|---|
| public void setUserConfig(UserConfig userConfig) Implements org. Set the UserConfig listener with which we are associated.
| |