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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
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
-