@Test public void testAnyUserAndHosts() { String server = "server"; setValidHosts("*"); setValidUsers(server, "*"); UserImpersonation impersonation = new UserImpersonation(conf); UsersWithHosts uwh = impersonation.get(server); assertNotNull(uwh); assertTrue(uwh.acceptsAllHosts()); assertTrue(uwh.acceptsAllUsers()); assertEquals(AlwaysTrueSet.class, uwh.getHosts().getClass()); assertEquals(AlwaysTrueSet.class, uwh.getUsers().getClass()); }
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);  }