Class ConsumerEncryptionPolicy
java.lang.Object
org.apache.pulsar.client.api.v5.config.ConsumerEncryptionPolicy
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.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
privateKeyProvider
- Returns:
- the provider used to load private keys for decryption, or
nullwhen the consumer doesn't decrypt and falls back to the failure action (DISCARD or CONSUME)
-
failureAction
- Returns:
- the action the consumer takes when decryption fails
-
builder
- Returns:
- a new builder for constructing a
ConsumerEncryptionPolicy
-