I am using Java spring boot to implement encryption and decryption of payload.i want to create a centralised place where i will decrypt all the incoming request payloads and then send it to the controller apis descrypted.
for exampler earlier api was – api?queryparams=1&queryparam=2
now it is – api?request=encoded-string
now i am able to get the encoded-string decrypt it and get queryparams=1&queryparam=2
now what i am expecting is that it should send the payload to the controller api so the api give expected result.
but it is unable to set these values into the controller api
i am expecting to make a centralised interceptor not api level changes so that i will get encrypted requests interceptor decrypts it and sends payload to controller and it gets executed as it was earlier
Ashish Kumar Panda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.