Mohamed Taher Alrefaie
Mohamed Taher Alrefaie

Reputation: 16233

Securing RESTful webservices (Jersey on Tomcat)

I have implemented a number of web services using Jersey. What I need to do now is to secure them. This means I need to encrypt the data transferred and authenticate users. The server I'm using is Tomcat

Is there any articles and tutorials for this?

Upvotes: 2

Views: 4878

Answers (2)

Alankar Srivastava
Alankar Srivastava

Reputation: 864

For encryption you can use https in tomcat. Here is the guide on how to do it. For authentication you can use have a look at this post.

Hope this helps !!

Upvotes: 3

Waqas Memon
Waqas Memon

Reputation: 1249

I think, if you dont have specifics, You should use Token Based Authentication.

The authentication happens on another service, and not with the rest service, once authenticated, the token can be used and given to the client to access REST services.

Upvotes: 0

Related Questions