import java.io.*; import java.security.*; import java.security.acl.*; import java.util.*; import java.math.*; import com.sun.server.realm.*; import com.sun.server.realm.util.*; public abstract class UserEntityImpl implements UserEntity { private CustomRealm realm = null; public UserEntityImpl(CustomRealm aRealm) throws IOException { super(); realm = aRealm; } public CustomRealm getRealm() { return realm; } public Enumeration getUserNames() throws BadRealmException { throw new BadRealmException("Cannot list users in this realm."); } public boolean authenticate(String userName, String plainTextPassword) throws NoSuchUserException { throw new NoSuchUserException(userName); } public User getUser(String name) throws NoSuchUserException, BadRealmException { throw new NoSuchUserException(name); } public void delete(String userName) throws NoSuchUserException, BadRealmException { throw new BadRealmException("Cannot delete users in this realm."); } }