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 Classes -
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.protected static voidprivate static voidsetCanonicalHostName(InetAddress addr, String canonicalHostName) private 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.voidvoidvoidvoidvoidvoidvoidvoidTest 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
-
setCanonicalHostName
private static void setCanonicalHostName(InetAddress addr, String canonicalHostName) throws Exception - Throws:
Exception
-
testRpcCallWithKerberosSaslAuthCanonicalHostname
- Throws:
Exception
-
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
-