public abstract class AbstractTestMutualTls extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTestMutualTls.CertConfig |
Modifier and Type | Field and Description |
---|---|
X509KeyType |
caKeyType |
AbstractTestMutualTls.CertConfig |
certConfig |
X509KeyType |
certKeyType |
protected static File |
DIR |
boolean |
expectSuccess |
String |
keyPassword |
protected static X509TestContextProvider |
PROVIDER |
protected org.apache.hadoop.hbase.ipc.RpcClient |
rpcClient |
protected org.apache.hadoop.hbase.ipc.RpcServer |
rpcServer |
private org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface |
stub |
protected static HBaseCommonTestingUtil |
UTIL |
boolean |
validateHostnames |
private X509TestContext |
x509TestContext |
Constructor and Description |
---|
AbstractTestMutualTls() |
Modifier and Type | Method and Description |
---|---|
static 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 |
setUpBeforeClass() |
private void |
submitRequest() |
void |
tearDown() |
void |
testClientAuth() |
protected static HBaseCommonTestingUtil UTIL
protected static X509TestContextProvider PROVIDER
private X509TestContext x509TestContext
protected org.apache.hadoop.hbase.ipc.RpcServer rpcServer
protected org.apache.hadoop.hbase.ipc.RpcClient rpcClient
private org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub
public X509KeyType caKeyType
public X509KeyType certKeyType
public String keyPassword
public boolean expectSuccess
public boolean validateHostnames
public AbstractTestMutualTls.CertConfig certConfig
public AbstractTestMutualTls()
public static void setUpBeforeClass() throws IOException
IOException
public static void cleanUp()
protected abstract void initialize(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) throws IOException, GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
IOException
GeneralSecurityException
org.bouncycastle.operator.OperatorCreationException
protected void handleCertConfig(org.apache.hadoop.conf.Configuration confToSet) throws GeneralSecurityException, IOException, org.bouncycastle.operator.OperatorCreationException
GeneralSecurityException
IOException
org.bouncycastle.operator.OperatorCreationException
public void tearDown() throws IOException
IOException
public void testClientAuth() throws Exception
Exception
private void submitRequest() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.