File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTPS" Watch "HTTPS" New topic


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.
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
So that means I don't have to open up any SSL sockets or handle certificates or anything like that?!
Thanks for the promptness!
I love this board!
I agree. Here's the link:
subject: HTTPS
jQuery in Action, 3rd edition