Package org.apache.hadoop.hbase.security
Class TestMutualTlsClientSide
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestMutualTls
org.apache.hadoop.hbase.security.TestMutualTlsClientSide
Comprehensively tests all permutations of certificate and host verification on the client side.
Tests each permutation of that against each value of
AbstractTestMutualTls.CertConfig
, i.e. passing a bad cert,
etc. See inline comments in data()
below for what the expectations are-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.security.AbstractTestMutualTls
AbstractTestMutualTls.CertConfig
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.security.AbstractTestMutualTls
caKeyType, certConfig, certKeyType, DIR, expectSuccess, keyPassword, PROVIDER, rpcClient, rpcServer, UTIL, validateHostnames
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondata()
protected void
initialize
(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) Methods inherited from class org.apache.hadoop.hbase.security.AbstractTestMutualTls
cleanUp, handleCertConfig, setUp, setUpBeforeClass, tearDown, testClientAuth
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestMutualTlsClientSide
public TestMutualTlsClientSide()
-
-
Method Details
-
data
-
initialize
protected void initialize(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) throws IOException, GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException - Specified by:
initialize
in classAbstractTestMutualTls
- Throws:
IOException
GeneralSecurityException
org.bouncycastle.operator.OperatorCreationException
-