4

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.

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Actually it is, and that is the problem. As far as I know i need to make changes in Glassfish backend setup, but I can't figure it out. Thanks for reply
I think when you start it, you can look at the default TLS port used by the container
Any tips on how to do that. I am using NetBeans. As far as I know I am only able to go to admin panel whitin this adress localhost:4848/common/index.jsf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.