public class SecurePassConfigProvider extends Object implements org.apache.kafka.common.config.provider.ConfigProvider
ConfigProvider that represents a Properties file.
SecurePassConfigProvider decrypts the 'values' in the properties file using EncryptionEngine.| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_ENCRYPTION_KEY |
static String |
MASTER_KEY_ENV_VAR |
static String |
METADATA_KEY_LENGTH |
static String |
METADATA_PREFIX |
| Constructor and Description |
|---|
SecurePassConfigProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> configs) |
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.
|
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.
|
protected DecryptionEngine |
initializeDecryptionEngine(Properties properties) |
protected Reader |
reader(String path) |
public static final String DATA_ENCRYPTION_KEY
public static final String MASTER_KEY_ENV_VAR
public static final String METADATA_KEY_LENGTH
public static final String METADATA_PREFIX
public void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurableprotected DecryptionEngine initializeDecryptionEngine(Properties properties)
public org.apache.kafka.common.config.ConfigData get(String path)
get in interface org.apache.kafka.common.config.provider.ConfigProviderpath - the file where the data residespublic org.apache.kafka.common.config.ConfigData get(String path, Set<String> keys)
get in interface org.apache.kafka.common.config.provider.ConfigProviderpath - the file where the data resideskeys - the keys whose values will be retrievedprotected Reader reader(String path) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseable