public class TestSecureIPC extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestSecureIPC.CanonicalHostnameTestingAuthenticationProviderSelector |
static class |
TestSecureIPC.TestThread |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
clientConf |
private static String |
HOST |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
private String |
krbKeytab |
private String |
krbPrincipal |
private static String |
PRINCIPAL |
String |
rpcClientImpl |
String |
rpcServerImpl |
private org.apache.hadoop.conf.Configuration |
serverConf |
private static HBaseTestingUtility |
TEST_UTIL |
private org.apache.hadoop.security.UserGroupInformation |
ugi |
Constructor and Description |
---|
TestSecureIPC() |
Modifier and Type | Method and Description |
---|---|
private void |
callRpcService(org.apache.hadoop.hbase.security.User clientUser)
Sets up a RPC Server and a Client.
|
private static void |
enableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf,
String canonicalHostname) |
private org.apache.hadoop.security.UserGroupInformation |
loginKerberosPrincipal(String krbKeytab,
String krbPrincipal) |
static Collection<Object[]> |
parameters() |
(package private) void |
setCryptoAES(String clientCryptoAES,
String serverCryptoAES) |
private void |
setRpcProtection(String clientProtection,
String serverProtection) |
static void |
setUp() |
void |
setUpTest() |
static void |
tearDown() |
void |
testDifferentConfWithCryptoAES()
Test various combinations of Server and Client configuration for Crypto AES.
|
void |
testRpcCallWithEnabledKerberosSaslAuth_CanonicalHostname() |
void |
testRpcCallWithEnabledKerberosSaslAuth_NoCanonicalHostname() |
void |
testRpcCallWithEnabledKerberosSaslAuth() |
void |
testRpcFallbackToSimpleAuth() |
void |
testSaslNoCommonQop() |
void |
testSaslWithCommonQop()
Test various combinations of Server and Client qops.
|
void |
testSaslWithCryptoAES()
Test sasl encryption with Crypto AES.
|
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final File KEYTAB_FILE
private static org.apache.hadoop.minikdc.MiniKdc KDC
private String krbPrincipal
private org.apache.hadoop.security.UserGroupInformation ugi
private org.apache.hadoop.conf.Configuration clientConf
private org.apache.hadoop.conf.Configuration serverConf
public String rpcClientImpl
public String rpcServerImpl
public TestSecureIPC()
public static Collection<Object[]> parameters()
public static void tearDown() throws IOException
IOException
public void testRpcCallWithEnabledKerberosSaslAuth() throws Exception
Exception
public void testRpcCallWithEnabledKerberosSaslAuth_CanonicalHostname() throws Exception
Exception
public void testRpcCallWithEnabledKerberosSaslAuth_NoCanonicalHostname() throws Exception
Exception
private static void enableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf, String canonicalHostname)
public void testRpcFallbackToSimpleAuth() throws Exception
Exception
private void setRpcProtection(String clientProtection, String serverProtection)
public void testSaslWithCommonQop() throws Exception
Exception
public void testSaslNoCommonQop() throws Exception
Exception
public void testSaslWithCryptoAES() throws Exception
Exception
public void testDifferentConfWithCryptoAES() throws Exception
Exception
void setCryptoAES(String clientCryptoAES, String serverCryptoAES)
private org.apache.hadoop.security.UserGroupInformation loginKerberosPrincipal(String krbKeytab, String krbPrincipal) throws Exception
Exception
private void callRpcService(org.apache.hadoop.hbase.security.User clientUser) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.