Class SecurePassConfigProvider

java.lang.Object
io.confluent.kafka.security.config.provider.SecurePassConfigProvider
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.config.provider.ConfigProvider, org.apache.kafka.common.Configurable

public class SecurePassConfigProvider extends Object implements org.apache.kafka.common.config.provider.ConfigProvider
An implementation of ConfigProvider that represents a Properties file. SecurePassConfigProvider decrypts the 'values' in the properties file using EncryptionEngine.
  • Field Details

  • Constructor Details

    • SecurePassConfigProvider

      public SecurePassConfigProvider()
  • Method Details

    • configure

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

      public org.apache.kafka.common.config.ConfigData get(String path)
      Retrieves the data at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.
      Specified by:
      get in interface org.apache.kafka.common.config.provider.ConfigProvider
      Parameters:
      path - the file where the data resides
      Returns:
      the unencrypted configuration data
    • get

      public org.apache.kafka.common.config.ConfigData get(String path, Set<String> keys)
      Retrieves the data with the given keys at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.
      Specified by:
      get in interface org.apache.kafka.common.config.provider.ConfigProvider
      Parameters:
      path - the file where the data resides
      keys - the keys whose values will be retrieved
      Returns:
      the unencrypted configuration data
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable