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 / July 2006

Tip: Looking for answers? Try searching our database.

runtime config of ssl

Thread view: 
pottmi@gmail.com - 17 Jul 2006 22:19 GMT
Hi,

I have a problem that I think someone must have a graceful solution
for.
I want to do runtime configuration of the Security Provider so that I
do not have to change the code to run on different platforms.  Here is
the "ugly" code that I am using now:

  // create new URL and connect
  java.security.Security.addProvider(new
                             com.sun.net.ssl.internal.ssl.Provider());
  //                         com.ibm.jsse.IBMJSSEProvider());

  System.getProperties().put("java.protocol.handler.pkgs",

"com.sun.net.ssl.internal.www.protocol");
  //
"com.ibm.net.ssl.internal.www.protocol");

Please suggest graceful alternatives.

mike.
EJP - 18 Jul 2006 02:33 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> do not have to change the code to run on different platforms.  Here is
> the "ugly" code that I am using now:

You don't need to do this at all! JSSE was integrated into JDK 1.4. This
stuff was only necessary in JDKs 1.2 and 1.3.


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.