Package org.apache.hadoop.hbase.security
Class TestMutualTlsServerSide
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestMutualTls
org.apache.hadoop.hbase.security.TestMutualTlsServerSide
Comprehensively tests all permutations of ClientAuth modes and host verification
enabled/disabled. Tests each permutation of that against each relevant value of
AbstractTestMutualTls.CertConfig
, i.e. passing no cert, 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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
org.apache.hadoop.hbase.io.crypto.tls.X509Util.ClientAuth
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
-
clientAuthMode
-
-
Constructor Details
-
TestMutualTlsServerSide
public TestMutualTlsServerSide()
-
-
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
-