runtime config of ssl

Discussion in 'Java' started by pottmi@gmail.com, Jul 17, 2006.

  1. Guest

    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.
     
    , Jul 17, 2006
    #1
    1. Advertising

  2. EJP Guest

    wrote:

    > 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:


    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.
     
    EJP, Jul 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. 620
    Replies:
    2
    Views:
    1,008
    Murat Tunaboylu
    Jan 6, 2004
  2. =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmEuIEo=?=

    Web.Config Get Config settings at runtime.

    =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmEuIEo=?=, Feb 5, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,268
    Kevin Spencer
    Feb 6, 2004
  3. CW
    Replies:
    2
    Views:
    523
  4. Sean Wolfe
    Replies:
    1
    Views:
    2,259
    Joerg Jooss
    Apr 28, 2005
  5. CSharpner
    Replies:
    0
    Views:
    1,044
    CSharpner
    Apr 9, 2007
Loading...

Share This Page