Class FieldLevelDecryptionService
java.lang.Object
de.otto.kafka.messaging.e2ee.fieldlevel.FieldLevelDecryptionService
-
Constructor Summary
ConstructorsConstructorDescriptionFieldLevelDecryptionService(DecryptionService decryptionService) FieldLevelDecryptionService(EncryptionKeyProvider encryptionKeyProvider) -
Method Summary
Modifier and TypeMethodDescriptiondecryptFieldValue(String kafkaTopicName, EncryptedString encryptedString) decrypts the given text (depending on the content).decryptFieldValue(String kafkaTopicName, String encryptedString) decrypts the given text (depending on the content).
-
Constructor Details
-
FieldLevelDecryptionService
-
FieldLevelDecryptionService
-
-
Method Details
-
decryptFieldValue
decrypts the given text (depending on the content).- Parameters:
kafkaTopicName- name of the Kafka Topic the field value is from.encryptedString- the (potentially) encrypted text value. Can benull.- Returns:
- The plain text or
null
-
decryptFieldValue
decrypts the given text (depending on the content).- Parameters:
kafkaTopicName- name of the Kafka Topic the field value is from.encryptedString- the (potentially) encrypted text value. Can benull.- Returns:
- The plain text or
null
-