Class KafkaSecurityProperties

java.lang.Object
org.mockserver.async.security.KafkaSecurityProperties

public final class KafkaSecurityProperties extends Object
Utility for applying KafkaSecurity settings to Kafka client Properties. Each non-blank field maps to the standard Kafka configuration key.
  • Method Details

    • applySecurity

      public static void applySecurity(Properties props, KafkaSecurity security)
      Apply security settings to the given Kafka client properties. Only non-blank fields from the KafkaSecurity are set; if security is empty or null, the properties are left unchanged (backward-compatible plaintext behaviour).
      Parameters:
      props - the Kafka client properties to modify in-place
      security - the security configuration (may be null)