@Test public void testSingleUserAndHost() { String server = "server", host = "single_host.domain.com", client = "single_client"; setValidHosts(host); setValidUsers(server, client); UserImpersonation impersonation = new UserImpersonation(conf); UsersWithHosts uwh = impersonation.get(server); assertNotNull(uwh); assertFalse(uwh.acceptsAllHosts()); assertFalse(uwh.acceptsAllUsers()); assertNotEquals(AlwaysTrueSet.class, uwh.getHosts().getClass()); assertNotEquals(AlwaysTrueSet.class, uwh.getUsers().getClass()); assertTrue(uwh.getUsers().contains(client)); assertTrue(uwh.getHosts().contains(host)); assertFalse(uwh.getUsers().contains("some_other_user")); assertFalse(uwh.getHosts().contains("other_host.domain.com")); }
public UsersWithHosts get(String remoteUser) { return proxyUsers.get(remoteUser); }
UserImpersonation { public UsersWithHosts get(String remoteUser) { return proxyUsers.get(remoteUser); } }
UserImpersonation { public UsersWithHosts get(String remoteUser) { return proxyUsers.get(remoteUser); } UserImpersonation(AccumuloConfiguration conf); }
UserImpersonation { public UsersWithHosts get(String remoteUser) { return proxyUsers.get(remoteUser); } UserImpersonation(AccumuloConfiguration conf); UsersWithHosts get(String remoteUser); }
UserImpersonation { public UsersWithHosts get(String remoteUser) { return proxyUsers.get(remoteUser); } UserImpersonation(AccumuloConfiguration conf); UsersWithHosts get(String remoteUser);  }