syhily opened a new issue, #19139:
URL: https://github.com/apache/pulsar/issues/19139

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   2.10.2
   
   ### Minimal reproduce step
   
   Pulsar add the `MessageCrypto` support, add enabled it in 
`ProducerConfigurationData`, but Pulsar didn't expose it in `ProducerBuilder` 
as the `ConsumerBuilder.messageCrypto(MessageCrypto messageCrypto)`
   
   ### What did you expect to see?
   
   Add a new method for setting the `MessageCrypto` in `ProducerBuilder`.
   
   ```java
   /**
    * Sets a {@link MessageCrypto}.
    *
    * <p>Contains methods to encrypt/decrypt message for End to End Encryption.
    *
    * @param messageCrypto
    *            MessageCrypto object
    * @return the consumer builder instance
    */
   ProducerBuilder<T> messageCrypto(MessageCrypto messageCrypto);
   ```
   
   ```java
   @Override
   public ProducerBuilder<T> messageCrypto(MessageCrypto messageCrypto) {
       conf.setMessageCrypto(messageCrypto);
       return this;
   }
   ```
   
   ### What did you see instead?
   
   Not applicable.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to