title: How to prevent sensitive data from being logged by SyncInvoker.post?
body: <p>I'm sending a request with a following code:</p>
  
  <pre><code>final WebTarget target = client.target(url);
  CustomResponse response = target.request(MediaType.APPLICATION_XML_TYPE)
                            .post(Entity.xml(password), CustomResponse.class);
  </code></pre>
  
  <p>Authentication is designed to accept username as a part of <code>url</code> while password is sent in request body.</p>
  
  <p>The issue is that password is shown in logs which are generated by class <code>ClientRequest#writeEntity()</code> inside <code>javax.ws.rs</code> library.</p>
  
  <p>So, my question is how force that library not to store password in logs without turning logging off?</p>
  
  <p>Thank you.</p>