Class DefaultSslEngineFactoryTest
java.lang.Object
org.apache.kafka.common.security.ssl.DefaultSslEngineFactoryTest
- Direct Known Subclasses:
CommonNameLoggingSslEngineFactoryTest, DefaultSslEngineFactoryFipsTest, NettySslEngineFactoryTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kafka.common.config.types.PasswordpemAsConfigValue(String... pemValues) static StringpemFilePath(String pem) voidvoidvoidsetUp()voidteardown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidKeystore, truststore listeners can be triggered after the factory is closed.voidvoidvoidvoidvoidvoidIn very rare cases, broker startup can fail and require manual restart due to a process creating the truststore file while another process tries to read it.
-
Constructor Details
-
DefaultSslEngineFactoryTest
public DefaultSslEngineFactoryTest()
-
-
Method Details
-
setUp
- Throws:
IOException
-
teardown
- Throws:
IOException
-
testPemTrustStoreConfigWithOneCert
-
testPemTrustStoreConfigWithMultipleCerts
-
testPemKeyStoreConfigNoPassword
-
testPemKeyStoreConfigWithKeyPassword
-
testTrailingNewLines
-
testLeadingNewLines
-
testCarriageReturnLineFeed
-
testPemTrustStoreFile
-
testPemKeyStoreFileNoKeyPassword
-
testPemKeyStoreFileWithKeyPassword
-
pemFilePath
-
pemAsConfigValue
-
testReloadingOnClosed
-
testSSLContextFailsOnACCPFips
-
testKeyStoreFileTriggerReload
-
testTrustStoreFileTriggerReload
-
testTrustStoreFileFailedIfNotExistOrEmpty
-
testTrustStoreFileAutoCreateForMTls
-
testTrustStoreRaceCondition
In very rare cases, broker startup can fail and require manual restart due to a process creating the truststore file while another process tries to read it. If this bug exists on the branch, this test will fail about 10% of the time.- Throws:
Exception
-
testFileBasedStoreMaybeReload
-
returnsCipherSuitesWhenConfigured
@Test public void returnsCipherSuitesWhenConfigured() -
returnsNullWhenCipherSuitesNotConfigured
@Test public void returnsNullWhenCipherSuitesNotConfigured()
-