Class DecryptionService

java.lang.Object
de.otto.kafka.messaging.e2ee.DecryptionService

public final class DecryptionService extends Object
This class do decrypt a message or payload.
See Also:
  • Constructor Details

  • Method Details

    • decryptToByteArray

      public byte[] decryptToByteArray(String kafkaTopicName, AesEncryptedPayload encryptedPayload)
      decrypts the given payload (depending on the content).
      Parameters:
      kafkaTopicName - name of the Kafka Topic the field value is from.
      encryptedPayload - the (potentially) encrypted payload.
      Returns:
      The plain text payload
    • decryptToString

      public String decryptToString(String kafkaTopicName, AesEncryptedPayload encryptedPayload)
      decrypts the given payload (depending on the content).
      Parameters:
      kafkaTopicName - name of the Kafka Topic the field value is from.
      encryptedPayload - the (potentially) encrypted payload.
      Returns:
      The plain text