aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "ssl support" Watch "ssl support" New topic
Author

ssl support

nick novak
Greenhorn

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
Sheriff

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
Greenhorn

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

Thanks
Ben Souther
Sheriff

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:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html

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"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ssl support
 
Similar Threads
ActionForward between 2 differnt web_apps
NIO read/write review
HttpServletResponse and HttpServletRequest
Spring 2.5 MultiActionController methodNameResolver not working
encryption