public class AbstractTestSecureIPC extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTestSecureIPC.CanonicalHostnameTestingAuthenticationProviderSelector |
static class |
AbstractTestSecureIPC.TestThread |
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
clientConf |
protected static String |
HOST |
protected static org.apache.hadoop.minikdc.MiniKdc |
KDC |
protected static File |
KEYTAB_FILE |
protected String |
krbKeytab |
protected String |
krbPrincipal |
protected static String |
PRINCIPAL |
protected org.apache.hadoop.conf.Configuration |
serverConf |
protected static HBaseTestingUtil |
TEST_UTIL |
protected org.apache.hadoop.security.UserGroupInformation |
ugi |
Constructor and Description |
---|
AbstractTestSecureIPC() |
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) |
protected static void |
initKDCAndConf() |
private void |
setCryptoAES(String clientCryptoAES,
String serverCryptoAES) |
private void |
setRpcProtection(String clientProtection,
String serverProtection) |
protected void |
setUpPrincipalAndConf() |
protected static void |
stopKDC() |
void |
testDifferentConfWithCryptoAES()
Test various combinations of Server and Client configuration for Crypto AES.
|
void |
testRpcCallWithEnabledKerberosSaslAuth() |
void |
testRpcCallWithEnabledKerberosSaslAuthCanonicalHostname() |
void |
testRpcCallWithEnabledKerberosSaslAuthNoCanonicalHostname() |
void |
testRpcFallbackToSimpleAuth() |
void |
testSaslNoCommonQop() |
void |
testSaslWithCommonQop()
Test various combinations of Server and Client qops.
|
void |
testSaslWithCryptoAES()
Test sasl encryption with Crypto AES.
|
protected static final HBaseTestingUtil TEST_UTIL
protected static final File KEYTAB_FILE
protected static org.apache.hadoop.minikdc.MiniKdc KDC
protected String krbPrincipal
protected org.apache.hadoop.security.UserGroupInformation ugi
protected org.apache.hadoop.conf.Configuration clientConf
protected org.apache.hadoop.conf.Configuration serverConf
public AbstractTestSecureIPC()
protected static void initKDCAndConf() throws Exception
Exception
protected static void stopKDC() throws InterruptedException
InterruptedException
protected final void setUpPrincipalAndConf() throws Exception
Exception
public void testRpcCallWithEnabledKerberosSaslAuth() throws Exception
Exception
public void testRpcCallWithEnabledKerberosSaslAuthCanonicalHostname() throws Exception
Exception
public void testRpcCallWithEnabledKerberosSaslAuthNoCanonicalHostname() 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
private void setCryptoAES(String clientCryptoAES, String serverCryptoAES)
private void callRpcService(org.apache.hadoop.hbase.security.User clientUser) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.