Package org.apache.hadoop.hbase.security
Class AbstractTestSecureIPC
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestSecureIPC
- Direct Known Subclasses:
TestSaslTlsIPC
,TestSecureIPC
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configuration
protected static String
protected static org.apache.hadoop.minikdc.MiniKdc
protected static final File
protected String
protected String
protected static String
protected org.apache.hadoop.conf.Configuration
protected static final HBaseTestingUtil
protected org.apache.hadoop.security.UserGroupInformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
callRpcService
(org.apache.hadoop.hbase.security.User clientUser) private void
callRpcService
(org.apache.hadoop.hbase.security.User serverUser, 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
private void
setCryptoAES
(String clientCryptoAES, String serverCryptoAES) private void
setRpcProtection
(String clientProtection, String serverProtection) protected final void
protected static void
stopKDC()
void
Test various combinations of Server and Client configuration for Crypto AES.void
void
void
void
void
void
void
void
void
Test various combinations of Server and Client qops.void
Test sasl encryption with Crypto AES.
-
Field Details
-
TEST_UTIL
-
KEYTAB_FILE
-
KDC
-
HOST
-
PRINCIPAL
-
krbKeytab
-
krbPrincipal
-
ugi
-
clientConf
-
serverConf
-
-
Constructor Details
-
AbstractTestSecureIPC
public AbstractTestSecureIPC()
-
-
Method Details
-
initKDCAndConf
- Throws:
Exception
-
stopKDC
-
setUpPrincipalAndConf
- Throws:
Exception
-
testRpcCallWithEnabledKerberosSaslAuth
- Throws:
Exception
-
testRpcCallWithEnabledKerberosSaslAuthCanonicalHostname
- Throws:
Exception
-
testRpcCallWithEnabledKerberosSaslAuthNoCanonicalHostname
- Throws:
Exception
-
enableCanonicalHostnameTesting
private static void enableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf, String canonicalHostname) -
testRpcServerFallbackToSimpleAuth
- Throws:
Exception
-
testRpcServerDisallowFallbackToSimpleAuth
- Throws:
Exception
-
testRpcClientFallbackToSimpleAuth
- Throws:
Exception
-
testRpcClientDisallowFallbackToSimpleAuth
- Throws:
Exception
-
setRpcProtection
-
testSaslWithCommonQop
Test various combinations of Server and Client qops.- Throws:
Exception
-
testSaslNoCommonQop
- Throws:
Exception
-
testSaslWithCryptoAES
Test sasl encryption with Crypto AES.- Throws:
Exception
-
testDifferentConfWithCryptoAES
Test various combinations of Server and Client configuration for Crypto AES.- Throws:
Exception
-
setCryptoAES
-
callRpcService
private void callRpcService(org.apache.hadoop.hbase.security.User serverUser, org.apache.hadoop.hbase.security.User clientUser) throws Exception Sets up a RPC Server and a Client. Does a RPC checks the result. If an exception is thrown from the stub, this function will throw root cause of that exception.- Throws:
Exception
-
callRpcService
- Throws:
Exception
-
callRpcService
- Throws:
Exception
-