Package org.apache.hadoop.hbase.security
Class AbstractTestMutualTls
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestMutualTls
- Direct Known Subclasses:
TestMutualTlsClientSide
,TestMutualTlsServerSide
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static File
boolean
protected static X509TestContextProvider
protected org.apache.hadoop.hbase.ipc.RpcClient
protected org.apache.hadoop.hbase.ipc.RpcServer
private org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface
protected static HBaseCommonTestingUtil
boolean
private X509TestContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanUp()
protected void
handleCertConfig
(org.apache.hadoop.conf.Configuration confToSet) protected abstract void
initialize
(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) void
setUp()
static void
private void
void
tearDown()
void
-
Field Details
-
UTIL
-
DIR
-
PROVIDER
-
x509TestContext
-
rpcServer
-
rpcClient
-
stub
private org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub -
caKeyType
-
certKeyType
-
keyPassword
-
expectSuccess
-
validateHostnames
-
certConfig
-
-
Constructor Details
-
AbstractTestMutualTls
public AbstractTestMutualTls()
-
-
Method Details
-
setUpBeforeClass
- Throws:
IOException
-
cleanUp
-
initialize
protected abstract void initialize(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) throws IOException, GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException - Throws:
IOException
GeneralSecurityException
org.bouncycastle.operator.OperatorCreationException
-
setUp
- Throws:
Exception
-
handleCertConfig
protected void handleCertConfig(org.apache.hadoop.conf.Configuration confToSet) throws GeneralSecurityException, IOException, org.bouncycastle.operator.OperatorCreationException - Throws:
GeneralSecurityException
IOException
org.bouncycastle.operator.OperatorCreationException
-
tearDown
- Throws:
IOException
-
testClientAuth
- Throws:
Exception
-
submitRequest
private void submitRequest() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-