public class TestSecureIPC extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestSecureIPC.TestThread |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) org.apache.hadoop.conf.Configuration |
clientConf |
org.junit.rules.ExpectedException |
exception |
private static String |
HOST |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
(package private) String |
krbKeytab |
(package private) String |
krbPrincipal |
private static String |
PRINCIPAL |
String |
rpcClientImpl |
String |
rpcServerImpl |
(package private) org.apache.hadoop.conf.Configuration |
serverConf |
private static HBaseTestingUtility |
TEST_UTIL |
(package 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 org.apache.hadoop.security.UserGroupInformation |
loginKerberosPrincipal(String krbKeytab,
String krbPrincipal) |
static Collection<Object[]> |
parameters() |
(package private) void |
setCryptoAES(String clientCryptoAES,
String serverCryptoAES) |
(package 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() |
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
String krbPrincipal
org.apache.hadoop.security.UserGroupInformation ugi
org.apache.hadoop.conf.Configuration clientConf
org.apache.hadoop.conf.Configuration serverConf
public org.junit.rules.ExpectedException exception
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 testRpcFallbackToSimpleAuth() throws Exception
Exception
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–2019 The Apache Software Foundation. All rights reserved.