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
IOExceptionpublic void testRpcCallWithEnabledKerberosSaslAuth() throws Exception
Exceptionpublic void testRpcCallWithEnabledKerberosSaslAuth_CanonicalHostname() throws Exception
Exceptionpublic void testRpcCallWithEnabledKerberosSaslAuth_NoCanonicalHostname() throws Exception
Exceptionprivate static void enableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf, String canonicalHostname)
public void testRpcFallbackToSimpleAuth() throws Exception
Exceptionprivate void setRpcProtection(String clientProtection, String serverProtection)
public void testSaslWithCommonQop() throws Exception
Exceptionpublic void testSaslNoCommonQop() throws Exception
Exceptionpublic void testSaslWithCryptoAES() throws Exception
Exceptionpublic void testDifferentConfWithCryptoAES() throws Exception
Exceptionvoid setCryptoAES(String clientCryptoAES, String serverCryptoAES)
private org.apache.hadoop.security.UserGroupInformation loginKerberosPrincipal(String krbKeytab, String krbPrincipal) throws Exception
Exceptionprivate void callRpcService(org.apache.hadoop.hbase.security.User clientUser) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.