Securing REST services in Jersey

前端 未结 5 658
孤城傲影
孤城傲影 2020-12-10 09:13

I am very much new to web services. I have exposed some REST services using Jersey 2 in integration with Spring. Now I need to secure those rest services using authenticatio

5条回答
  •  借酒劲吻你
    2020-12-10 09:58

    What I can tell you now is that you already did most of the 'dirty' job integrating Jersey with Spring. I recommend to you to go an Application-based solution, is it does not tie you to a particular container. Spring Security can be intimidating at first, but then when you tame the beast, you see it was actually a friendly puppy.

    The fact is that Spring Security is hugely customizable, just by implementing their interfaces. And there is a lot of documentation and support. Plus, you already have a Spring based application.

    As all you seek is guidance, I can provide you with some tutorials. You can take advantage from this blog.

    http://www.baeldung.com/rest-with-spring-series/ http://www.baeldung.com/2011/10/31/securing-a-restful-web-service-with-spring-security-3-1-part-3/

提交回复
热议问题