When sending web service requests in our Java application, we read a couple of properties as url, username, password etc. from a property-file and then set them in a request object that is then passed to the web service.
As we log the outgoing request and response objects (with an ObjectMapper), the passwords are printed in clear text in the log file, which is not good. Since we don't have control over the request objects we cannot annotate the property to remove it.
Is there a way of telling the ObjectMapper to ignore getters with certain names or something similar? I have looked at the documentation but cannot find anything that I find suitable (doesn't mean it's not there).
I'm using version 1.9.13 of the jackson-mapper-asl maven dependency to be able to use the ObjectMapper.