Package org.apache.hadoop.hbase.security
Class AbstractTestSecureIPC
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestSecureIPC
- Direct Known Subclasses:
- TestSaslTlsIPC,- TestSecureIPC
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configurationprotected static Stringprotected static org.apache.hadoop.minikdc.MiniKdcprotected static final Fileprotected Stringprotected Stringprotected static Stringprotected org.apache.hadoop.conf.Configurationprotected static final HBaseTestingUtilprotected org.apache.hadoop.security.UserGroupInformation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidprivate voidcallRpcService(org.apache.hadoop.hbase.security.User clientUser) private voidcallRpcService(org.apache.hadoop.hbase.security.User serverUser, org.apache.hadoop.hbase.security.User clientUser) Sets up a RPC Server and a Client.private static voidenableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf, String canonicalHostname) protected static voidprivate voidsetCryptoAES(String clientCryptoAES, String serverCryptoAES) private voidsetRpcProtection(String clientProtection, String serverProtection) protected final voidprotected static voidstopKDC()voidTest various combinations of Server and Client configuration for Crypto AES.voidvoidvoidvoidvoidvoidvoidvoidvoidTest various combinations of Server and Client qops.voidTest sasl encryption with Crypto AES.
- 
Field Details- 
TEST_UTIL
- 
KEYTAB_FILE
- 
KDC
- 
HOST
- 
PRINCIPAL
- 
krbKeytab
- 
krbPrincipal
- 
ugi
- 
clientConf
- 
serverConf
 
- 
- 
Constructor Details- 
AbstractTestSecureIPCpublic AbstractTestSecureIPC()
 
- 
- 
Method Details- 
initKDCAndConf- Throws:
- Exception
 
- 
stopKDC
- 
setUpPrincipalAndConf- Throws:
- Exception
 
- 
testRpcCallWithEnabledKerberosSaslAuth- Throws:
- Exception
 
- 
testRpcCallWithEnabledKerberosSaslAuthCanonicalHostname- Throws:
- Exception
 
- 
testRpcCallWithEnabledKerberosSaslAuthNoCanonicalHostname- Throws:
- Exception
 
- 
enableCanonicalHostnameTestingprivate static void enableCanonicalHostnameTesting(org.apache.hadoop.conf.Configuration conf, String canonicalHostname) 
- 
testRpcServerFallbackToSimpleAuth- Throws:
- Exception
 
- 
testRpcServerDisallowFallbackToSimpleAuth- Throws:
- Exception
 
- 
testRpcClientFallbackToSimpleAuth- Throws:
- Exception
 
- 
testRpcClientDisallowFallbackToSimpleAuth- Throws:
- Exception
 
- 
setRpcProtection
- 
testSaslWithCommonQopTest various combinations of Server and Client qops.- Throws:
- Exception
 
- 
testSaslNoCommonQop- Throws:
- Exception
 
- 
testSaslWithCryptoAESTest sasl encryption with Crypto AES.- Throws:
- Exception
 
- 
testDifferentConfWithCryptoAESTest various combinations of Server and Client configuration for Crypto AES.- Throws:
- Exception
 
- 
setCryptoAES
- 
callRpcServiceprivate 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
 
 
-