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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidorg.apache.kafka.common.config.ConfigDataRetrieves the data at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.org.apache.kafka.common.config.ConfigDataRetrieves the data with the given keys at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.config.provider.ConfigProvider
subscribe, unsubscribe, unsubscribeAll
-
Field Details
-
DATA_ENCRYPTION_KEY
- See Also:
-
MASTER_KEY_ENV_VAR
- See Also:
-
METADATA_KEY_LENGTH
- See Also:
-
METADATA_PREFIX
- See Also:
-
-
Constructor Details
-
SecurePassConfigProvider
public SecurePassConfigProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
get
Retrieves the data at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.- Specified by:
getin interfaceorg.apache.kafka.common.config.provider.ConfigProvider- Parameters:
path- the file where the data resides- Returns:
- the unencrypted configuration data
-
get
Retrieves the data with the given keys at the given Properties file and decrypts the values using the CONFLUENT_MASTER_KEY.- Specified by:
getin interfaceorg.apache.kafka.common.config.provider.ConfigProvider- Parameters:
path- the file where the data resideskeys- the keys whose values will be retrieved- Returns:
- the unencrypted configuration data
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-