@Test public void testSingleUser() { final String server = "server/hostname@EXAMPLE.COM", client = "client@EXAMPLE.COM"; cc.set(Property.INSTANCE_RPC_SASL_ALLOWED_USER_IMPERSONATION, server + ":" + client); cc.set(Property.INSTANCE_RPC_SASL_ALLOWED_HOST_IMPERSONATION, "*"); UserImpersonation impersonation = new UserImpersonation(conf); UsersWithHosts uwh = impersonation.get(server); assertNotNull(uwh); assertTrue(uwh.acceptsAllHosts()); assertFalse(uwh.acceptsAllUsers()); assertTrue(uwh.getUsers().contains(client)); }
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);  }