Class SslFactoryTest

java.lang.Object
org.apache.kafka.common.security.ssl.SslFactoryTest
Direct Known Subclasses:
NettySslFactoryTest, Tls12SslFactoryTest, Tls13SslFactoryTest

public abstract class SslFactoryTest extends Object
  • Constructor Details

    • SslFactoryTest

      public SslFactoryTest(String tlsProtocol, Class<? extends org.apache.kafka.common.security.auth.SslEngineFactory> engineFactoryClass)
  • Method Details

    • testSslFactoryConfiguration

      @Test public void testSslFactoryConfiguration() throws Exception
      Throws:
      Exception
    • testSslFactoryConfigurationWithBrokerSSLListenerDynamicReloadOn

      @Test public void testSslFactoryConfigurationWithBrokerSSLListenerDynamicReloadOn() throws Exception
      Throws:
      Exception
    • testSslFactoryConfigurationACCPOn

      @Test public void testSslFactoryConfigurationACCPOn() throws Exception
      Throws:
      Exception
    • testSslFactoryConfigWithManyKeyStoreEntries

      @Test public void testSslFactoryConfigWithManyKeyStoreEntries() throws Exception
      Throws:
      Exception
    • testSslFactoryWithCustomKeyManagerConfiguration

      @Test public void testSslFactoryWithCustomKeyManagerConfiguration()
    • testSslFactoryWithoutProviderClassConfiguration

      @Test public void testSslFactoryWithoutProviderClassConfiguration()
    • testSslFactoryWithIncorrectProviderClassConfiguration

      @Test public void testSslFactoryWithIncorrectProviderClassConfiguration()
    • testSslFactoryWithoutPasswordConfiguration

      @Test public void testSslFactoryWithoutPasswordConfiguration() throws Exception
      Throws:
      Exception
    • testClientMode

      @Test public void testClientMode() throws Exception
      Throws:
      Exception
    • staleSslEngineFactoryShouldBeClosed

      @Test public void staleSslEngineFactoryShouldBeClosed() throws IOException, GeneralSecurityException
      Throws:
      IOException
      GeneralSecurityException
    • testIncompatibleKeystoreReconfiguration

      @Test public void testIncompatibleKeystoreReconfiguration() throws Exception
      Throws:
      Exception
    • testReconfiguration

      @Test public void testReconfiguration() throws Exception
      Throws:
      Exception
    • testReconfigurationWithoutTruststore

      @Test public void testReconfigurationWithoutTruststore() throws Exception
      Throws:
      Exception
    • testReconfigurationWithoutKeystore

      @Test public void testReconfigurationWithoutKeystore() throws Exception
      Throws:
      Exception
    • testPemReconfiguration

      @Test public void testPemReconfiguration() throws Exception
      Throws:
      Exception
    • testKeyStoreTrustStoreValidation

      @Test public void testKeyStoreTrustStoreValidation() throws Exception
      Throws:
      Exception
    • testUntrustedKeyStoreValidationFails

      @Test public void testUntrustedKeyStoreValidationFails() throws Exception
      Throws:
      Exception
    • testKeystoreVerifiableUsingTruststore

      @Test public void testKeystoreVerifiableUsingTruststore() throws Exception
      Throws:
      Exception
    • testPemKeystoreVerifiableUsingTruststore

      @Test public void testPemKeystoreVerifiableUsingTruststore() throws Exception
      Throws:
      Exception
    • testCertificateEntriesValidation

      @Test public void testCertificateEntriesValidation() throws Exception
      Throws:
      Exception
    • testPemCertificateEntriesValidation

      @Test public void testPemCertificateEntriesValidation() throws Exception
      Throws:
      Exception
    • testClientSpecifiedSslEngineFactoryUsed

      @Test public void testClientSpecifiedSslEngineFactoryUsed() throws Exception
      Tests client side ssl.engine.factory configuration is used when specified
      Throws:
      Exception
    • testEngineFactoryClosed

      @Test public void testEngineFactoryClosed() throws Exception
      Throws:
      Exception
    • testServerSpecifiedSslEngineFactoryUsed

      @Test public void testServerSpecifiedSslEngineFactoryUsed() throws Exception
      Tests server side ssl.engine.factory configuration is used when specified
      Throws:
      Exception
    • testInvalidSslEngineFactory

      @Test public void testInvalidSslEngineFactory() throws Exception
      Tests invalid ssl.engine.factory configuration
      Throws:
      Exception
    • testUsedConfigs

      @Test public void testUsedConfigs() throws IOException, GeneralSecurityException
      Throws:
      IOException
      GeneralSecurityException
    • returnsConfiguredEndpointIdentificationAlgorithm

      @Test public void returnsConfiguredEndpointIdentificationAlgorithm()
    • returnsNullWhenEndpointIdentificationAlgorithmNotConfigured

      @Test public void returnsNullWhenEndpointIdentificationAlgorithmNotConfigured()
    • testDynamicUpdateCompatibility

      @Test public void testDynamicUpdateCompatibility() throws Exception
      Throws:
      Exception
    • testValidateReconfigurationClosesTemporaryFactory

      @Test public void testValidateReconfigurationClosesTemporaryFactory() throws Exception
      Throws:
      Exception
    • testValidateReconfigurationFailureClosesTemporaryFactory

      @Test public void testValidateReconfigurationFailureClosesTemporaryFactory() throws Exception
      Throws:
      Exception