secure a rest web service using jersey

2020-03-30 03:31发布

问题:

I have implemented rest web services for my application. Since this should not be a public service ,I want to enforce some type of client authentication. Please throw light on how to do that.

FYI, I am using apache Tomcat 7 and a MYSQL database

回答1:

You have a lot of options here - anything from container managed security (basic or digest) to Shiro or Spring Security.