Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

Securing a Java Application

Thread view: 
Francesco - 29 Jan 2007 16:40 GMT
Hi all !
I have a Java application that uses JSP for visualizing data and EJB
for queries.
Application is secured using HTTPS.
I need to create a Java client that connects to the J2ee application.
the client that connects must be secured too.
How can I do it ? using Secure Sockets ? (SSL)
Can I use the same certificates for the Java Application that are used
for the web application ?
Thanks
Francesco
Alex Hunsley - 31 Jan 2007 22:11 GMT
> Hi all !
> I have a Java application that uses JSP for visualizing data and EJB
[quoted text clipped - 7 lines]
> Thanks
> Francesco

Don't reinvent the wheel. The existing Java Http comms classes can
already handle the https protocol for you. As for certs - I remember
some annoying shenanigans around this... Ideally the cert is only needed
at the server end. If your server cert isn't 'official' (signed by
verisign et al) I think the client code has to override some security
provider setting somewhere in order to function... sorry, can't remember
more specifics.

Google around HttpClient or Http and Java...
lex
Alex Hunsley - 31 Jan 2007 22:14 GMT
>> Hi all !
>> I have a Java application that uses JSP for visualizing data and EJB
[quoted text clipped - 10 lines]
> Don't reinvent the wheel. The existing Java Http comms classes can
> already handle the https protocol for you.

Correcting myself: don't think they do. But if you use the Jakarta
commons HttpClient package, that will handle HTTPS.
See http://jakarta.apache.org/commons/httpclient/sslguide.html

> As for certs - I remember
> some annoying shenanigans around this... Ideally the cert is only needed
[quoted text clipped - 4 lines]
>
> Google around HttpClient or Http and Java...

> lex


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.