Package org.apache.hadoop.hbase.security
Class TestMutualTlsClientSide
java.lang.Object
org.apache.hadoop.hbase.security.AbstractTestMutualTls
org.apache.hadoop.hbase.security.TestMutualTlsClientSide
@Tag("org.apache.hadoop.hbase.testclassification.RPCTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestMutualTlsClientSide
extends AbstractTestMutualTls
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
ConstructorsConstructorDescriptionTestMutualTlsClientSide(X509KeyType caKeyType, X509KeyType certKeyType, String keyPassword, boolean expectSuccess, boolean validateHostnames, AbstractTestMutualTls.CertConfig certConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitialize(org.apache.hadoop.conf.Configuration serverConf, org.apache.hadoop.conf.Configuration clientConf) static Stream<org.junit.jupiter.params.provider.Arguments>Methods inherited from class org.apache.hadoop.hbase.security.AbstractTestMutualTls
cleanUp, handleCertConfig, setUp, setUpBeforeClass, tearDown, testClientAuth
-
Constructor Details
-
TestMutualTlsClientSide
public TestMutualTlsClientSide(X509KeyType caKeyType, X509KeyType certKeyType, String keyPassword, boolean expectSuccess, boolean validateHostnames, AbstractTestMutualTls.CertConfig certConfig)
-
-
Method Details
-
parameters
-
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:
initializein classAbstractTestMutualTls- Throws:
IOExceptionGeneralSecurityExceptionorg.bouncycastle.operator.OperatorCreationException
-