org.apache.catalina.startup

Class PasswdUserDatabase

Implemented Interfaces:
UserDatabase

public final class PasswdUserDatabase
extends java.lang.Object
implements UserDatabase

Concrete implementation of the UserDatabase interface that processes the /etc/passwd file on a Unix system.

Version:
$Revision: 1.2 $ $Date: 2004/02/27 14:58:49 $

Author:
Craig R. McClanahan

Constructor Summary

PasswdUserDatabase()
Initialize a new instance of this user database component.

Method Summary

String
getHome(String user)
Return an absolute pathname to the home directory for the specified user.
UserConfig
getUserConfig()
Return the UserConfig listener with which we are associated.
Enumeration
getUsers()
Return an enumeration of the usernames defined on this server.
void
setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.

Constructor Details

PasswdUserDatabase

public PasswdUserDatabase()
Initialize a new instance of this user database component.

Method Details

getHome

public String getHome(String user)
Return an absolute pathname to the home directory for the specified user.
Specified by:
getHome in interface UserDatabase

Parameters:
user - User for which a home directory should be retrieved


getUserConfig

public UserConfig getUserConfig()
Return the UserConfig listener with which we are associated.
Specified by:
getUserConfig in interface UserDatabase


getUsers

public Enumeration getUsers()
Return an enumeration of the usernames defined on this server.
Specified by:
getUsers in interface UserDatabase


setUserConfig

public void setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.
Specified by:
setUserConfig in interface UserDatabase

Parameters:
userConfig - The new UserConfig listener


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.