Authentication in Jersey
I want to implement authentication for my Jersey0based server/client REST but I'm not sure how exactly to lay out the code. Basically for every operation I have 2 methods - 1 from the server side, 1 from the client side. I've narrowed down the algorithm - I'm going to use the amazon strategy with HMAC. The question is how to lay out this in the code - should I add the authentication (encryption/decryption code) into every method - both server/client side or should I have one "dispatch" method on both sides which would perform the encryption/decryption and then will transfer execution control