Class QuarkusKafkaSslEngineFactory

java.lang.Object
io.quarkus.kafka.client.tls.QuarkusKafkaSslEngineFactory
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.Configurable, org.apache.kafka.common.security.auth.SslEngineFactory

public class QuarkusKafkaSslEngineFactory extends Object implements org.apache.kafka.common.security.auth.SslEngineFactory
  • Constructor Details

    • QuarkusKafkaSslEngineFactory

      public QuarkusKafkaSslEngineFactory()
  • Method Details

    • createClientSslEngine

      public SSLEngine createClientSslEngine(String peerHost, int peerPort, String endpointIdentification)
      Specified by:
      createClientSslEngine in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • createServerSslEngine

      public SSLEngine createServerSslEngine(String peerHost, int peerPort)
      Specified by:
      createServerSslEngine in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • shouldBeRebuilt

      public boolean shouldBeRebuilt(Map<String,Object> nextConfigs)
      Specified by:
      shouldBeRebuilt in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • reconfigurableConfigs

      public Set<String> reconfigurableConfigs()
      Specified by:
      reconfigurableConfigs in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • keystore

      public KeyStore keystore()
      Specified by:
      keystore in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • truststore

      public KeyStore truststore()
      Specified by:
      truststore in interface org.apache.kafka.common.security.auth.SslEngineFactory
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
    • checkForOtherSslConfigs

      public static void checkForOtherSslConfigs(Map<String,?> configs)
      Check if any SSL configuration is set for the Kafka client that will be ignored because the TLS configuration is set
      Parameters:
      configs - the Kafka client configuration