Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Jersey RESTful web service using https

I am new to Java EE and I am developing a RESTful API in which 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.

like image 437
gazivoda Avatar asked Sep 20 '25 15:09

gazivoda


1 Answers

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.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!