wood burning stoves 2.0*
The moose likes Servlets and the fly likes HTTPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTPS" Watch "HTTPS" New topic
Author

HTTPS

Sanjay Anand
Ranch Hand

Joined: Apr 03, 2001
Posts: 42
I am given the task of writing a servlet that will accept requests through HTTPS.
I am at a bit of a loss as to what to do.
One part of the problem is configuring the server and the servlet engine to allow HTTPS requests.
But what about the code? I cannot figure out what would be different in the code for checking a username and password.
Any help is appreciated.
Sanjay
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
dont believe that your servlet would have to implement anything different.. it would be a servlet that would reside on a SSL capable server. The SSL software would handle the https request/response (encoding/decoding).
Your servlet would not need anything special.
Sanjay Anand
Ranch Hand

Joined: Apr 03, 2001
Posts: 42
Great!
So that means I don't have to open up any SSL sockets or handle certificates or anything like that?!
Whew!
Thanks for the promptness!
I love this board!
Sanjay
 
Don't get me started about those stupid light bulbs.
 
subject: HTTPS