public String[] getConnectionNames(String user, String password)
throws RemoteException
{
try
{
ConnectionConfig config = getConnectionConfig();
// only check password and superuser privileges if dbInfo is valid
if (config.getDatabaseConfigInfo() != null)
{
// non-superusers can't get connection info for other users
if (!getConnectionInfo(user, password).is_superuser)
return new String[] { user };
}
// otherwise, return all connection names
String[] connectionNames = config.getConnectionInfoNames().toArray(new String[0]);
Arrays.sort(connectionNames, String.CASE_INSENSITIVE_ORDER);
return connectionNames;
}
catch (RemoteException se)
{