Class ConsumerEncryptionPolicy

java.lang.Object
org.apache.pulsar.client.api.v5.config.ConsumerEncryptionPolicy

public final class ConsumerEncryptionPolicy extends Object
Consumer-side end-to-end decryption configuration.

Construct via builder(). The PrivateKeyProvider is required when failureAction() is ConsumerCryptoFailureAction.FAIL (the default — strict mode); for ConsumerCryptoFailureAction.DISCARD or ConsumerCryptoFailureAction.CONSUME the provider may be omitted, in which case the consumer just relies on the failure action to decide what to do with encrypted messages it can't decrypt.

  • Method Details