Class FieldLevelEncryptionService
java.lang.Object
de.otto.kafka.messaging.e2ee.fieldlevel.FieldLevelEncryptionService
-
Constructor Summary
ConstructorsConstructorDescriptionFieldLevelEncryptionService(EncryptionKeyProvider encryptionKeyProvider) FieldLevelEncryptionService(EncryptionService encryptionService) -
Method Summary
Modifier and TypeMethodDescriptionencryptFieldValueToEncryptedString(String kafkaTopicName, String plainText) encrypts the given text (depending on the topic related configuration).encryptFieldValueToString(String kafkaTopicName, String plainText) encrypts the given text (depending on the topic related configuration).
-
Constructor Details
-
FieldLevelEncryptionService
-
FieldLevelEncryptionService
-
-
Method Details
-
encryptFieldValueToString
encrypts the given text (depending on the topic related configuration).- Parameters:
kafkaTopicName- name of the Kafka Topic the field value is for.plainText- the plain text value. Can benull.- Returns:
- The encrypted string or
null
-
encryptFieldValueToEncryptedString
encrypts the given text (depending on the topic related configuration).- Parameters:
kafkaTopicName- name of the Kafka Topic the field value is for.plainText- the plain text value. Can benull.- Returns:
- The encrypted string or
null
-