File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes ssl support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ssl support" Watch "ssl support" New topic

ssl support

nick novak

Joined: May 28, 2005
Posts: 4
What modifications are required to make a servlet support SSL data encryption?

1. Extend HttpSecureServlet.

2. No changes are required.

3. Encode HttpServletResponse with encodeURL() and decode HttpServletRequest with decodeURL().

4. Implement the HttpSSL interface.

5.Encode HttpServletResponse with encodeResponse() and decode HttpServletRequest with decodeRequest().
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Why are you posting multiple choice questions to a forum?
Are we being tested?

Which do you think it is?
[ May 28, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
nick novak

Joined: May 28, 2005
Posts: 4
Hey I am not testing anyone

I took a Servlet quiz, and for this question I answered #5 which I think is the correct answer.

I am just trying to find the correct answer

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

People here are happy to help someone out.
Often that help is a matter of pointing the person in the right direction.
What Javaranch is not, is an answer mill.
Using the ranch to get your homework done for you is strongly dicouraged..

I would start by doing some searches on the J2EE API (link in my signature) for HttpSecureServlet, enocdeURL, and encodeResponse. If any of these methods don't exist in the spec, then you can pretty much write off any answers that contain them.

The other document that you should always have at your fingertips is the Servlet Spec itself (link is also in my signature).

Another good resource is the documentation to any of the open source containers. Tomcat is particularly good because it is the reference implementation for the Servlet and JSP specs.
This page should give you a good hint toward answering the question you asked:

Be sure to let us know what you find.
[ May 28, 2005: Message edited by: Ben Souther ]
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Why Tomcat/Apache? I think any servlet container support SSL. Just visit any CA site and you will get detail instructions how to buy and setup certificate for your server.

Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
I agree. Here's the link:
subject: ssl support
jQuery in Action, 3rd edition