Java Jersey RESTful web service using https

∥☆過路亽.° 提交于 2019-12-23 16:15:37

问题


I am new to Java EE and I am developing a RESTful api in wich every api call the user sends encoded credentials. My problem is how to implement https protocol over default http and make my connection secure. I am using Jersey restful web services and Glassfish web server. Thanks.


回答1:


That's more a setup/configuration question, isn't it? You use HTTPS (TLS) because you set it up in your server, then your REST endpoint will be used/changed accordingly...and the (encoded) credentials can be sent as usually, whether the connection is encrypted or not.

UPDATE:

Since you didn't specify the Glassfish version, I'll assume you are using a "recent" version. Have a look at this article.



来源:https://stackoverflow.com/questions/33637450/java-jersey-restful-web-service-using-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!