Subject: remove deprecated calls to com.sun.net
Description: com.sun should not be called directly
 and now have been removed from JDK.
 Upstream author has been contacted about issue
Forwarded: yes
Last-Update: 2021-12-23
Author: Olivier Sallou <osallou@debian.org>
--- a/jemboss/org/emboss/jemboss/FileManager.java
+++ b/jemboss/org/emboss/jemboss/FileManager.java
@@ -42,22 +42,7 @@
     if(mysettings.getPublicSoapURL().startsWith("https"))
     {
       //SSL settings
-      com.sun.net.ssl.internal.ssl.Provider p =
-                     new com.sun.net.ssl.internal.ssl.Provider();
-      Security.addProvider(p);
 
-      //have to do it this way to work with JNLP
-      URL.setURLStreamHandlerFactory( new URLStreamHandlerFactory()
-      {
-        public URLStreamHandler createURLStreamHandler(final String protocol)
-        {
-          if(protocol != null && protocol.compareTo("https") == 0)
-          {
-            return new com.sun.net.ssl.internal.www.protocol.https.Handler();
-          }
-          return null;
-        }
-      });
       //location of keystore
       System.setProperty("javax.net.ssl.trustStore",
                         "resources/client.keystore");
--- a/jemboss/org/emboss/jemboss/Jemboss.java
+++ b/jemboss/org/emboss/jemboss/Jemboss.java
@@ -113,22 +113,7 @@
       //SSL settings
 
 //    System.setProperty ("javax.net.debug", "all");
-      com.sun.net.ssl.internal.ssl.Provider p =
-                     new com.sun.net.ssl.internal.ssl.Provider();
-      Security.addProvider(p);
 
-      //have to do it this way to work with JNLP
-      URL.setURLStreamHandlerFactory( new URLStreamHandlerFactory()
-      {
-        public URLStreamHandler createURLStreamHandler(final String protocol)
-        {
-          if(protocol != null && protocol.compareTo("https") == 0)
-          {
-            return new com.sun.net.ssl.internal.www.protocol.https.Handler();
-          }
-          return null;
-        }
-      });
 //    System.setProperty("java.protocol.handler.pkgs",
 //                        "com.sun.net.ssl.internal.www.protocol");
 
--- a/jemboss/org/emboss/jemboss/server/TestPrivateServer.java
+++ b/jemboss/org/emboss/jemboss/server/TestPrivateServer.java
@@ -61,22 +61,6 @@
     {
     //SSL settings
 //    System.setProperty ("javax.net.debug", "all");
-      com.sun.net.ssl.internal.ssl.Provider p =
-                   new com.sun.net.ssl.internal.ssl.Provider();
-      Security.addProvider(p);
-
-      //have to do it this way to work with JNLP
-      URL.setURLStreamHandlerFactory( new URLStreamHandlerFactory()
-      {
-        public URLStreamHandler createURLStreamHandler(final String protocol)
-        {
-          if(protocol != null && protocol.compareTo("https") == 0)
-          {
-            return new com.sun.net.ssl.internal.www.protocol.https.Handler();
-          }
-          return null;
-        }
-      });
 
       //location of keystore
       System.setProperty("javax.net.ssl.trustStore",
--- a/jemboss/org/emboss/jemboss/server/TestPublicServer.java
+++ b/jemboss/org/emboss/jemboss/server/TestPublicServer.java
@@ -56,22 +56,7 @@
       {
       //SSL settings
 //      System.setProperty ("javax.net.debug", "all");
-        com.sun.net.ssl.internal.ssl.Provider p =
-                     new com.sun.net.ssl.internal.ssl.Provider();
-        Security.addProvider(p);
 
-        //have to do it this way to work with JNLP
-        URL.setURLStreamHandlerFactory( new URLStreamHandlerFactory()
-        {
-          public URLStreamHandler createURLStreamHandler(final String protocol)
-          {
-            if(protocol != null && protocol.compareTo("https") == 0)
-            {
-              return new com.sun.net.ssl.internal.www.protocol.https.Handler();
-            }
-            return null;
-          }
-        });
 //      System.setProperty("java.protocol.handler.pkgs",
 //                        "com.sun.net.ssl.internal.www.protocol");
 
