title: Automatical request decryption in Spring controller
body: <p>For communication we will send encrypted messages between our app and backend. These messages contains encrypted payload which will be json. What is the best way to automatically decrypt the payload and pass it as unmarshalled object to the Spring rest controller. Should I utilize some Spring custom editors?</p>
  
  <p><strong>UPDATE</strong>
  The problem is quite complicated as we need to use HSM and DB for decryption. I know I can handle this in filter, but I guess the approach is not really good one.
  Replacing the request content seems odd to me not to mention the need for starting DB transaction.
  Spring interceptors will not help as they are just alternative to filters. We thought about AOP or some Facade before each service call, which fill take care about the messege decryption and unmarshalling.</p>