incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r411121 - in /incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP: Acceptor_impl.java Connector_impl.java
Date Fri, 02 Jun 2006 10:53:38 GMT
Author: rickmcguire
Date: Fri Jun  2 03:53:37 2006
New Revision: 411121

URL: http://svn.apache.org/viewvc?rev=411121&view=rev
Log:
YOKO-50 Remove obsolete Netscape code. 


Modified:
    incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java
    incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java

Modified: incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java?rev=411121&r1=411120&r2=411121&view=diff
==============================================================================
--- incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java
(original)
+++ incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java
Fri Jun  2 03:53:37 2006
@@ -80,33 +80,6 @@
 
     public org.apache.yoko.orb.OCI.Transport accept(boolean block) {
         //
-        // A signed applet running in Netscape may be granted permission
-        // to accept incoming connections. We use reflection to invoke
-        // the Netscape PrivilegeManager class in an attempt to enable
-        // the necessary privileges. If the applet hasn't been granted
-        // these privileges, an exception will be raised. The privileges
-        // are enabled only for the duration of this method.
-        //
-        if (System.getProperty("java.vendor").indexOf("Netscape") != -1) {
-            try {
-                Class nspm = Class
-                        .forName("netscape.security.PrivilegeManager");
-                Class[] enablePrivilegeArgTypes = { String.class };
-                java.lang.reflect.Method enablePrivilege = nspm.getMethod(
-                        "enablePrivilege", enablePrivilegeArgTypes);
-                java.lang.Object[] enablePrivilegeArgs = { null };
-                String[] privileges = { "IIOPRuntime", "UniversalAccept",
-                        "UniversalListen" };
-                for (int i = 0; i < privileges.length; i++) {
-                    enablePrivilegeArgs[0] = privileges[i];
-                    enablePrivilege.invoke(null, enablePrivilegeArgs);
-                }
-            } catch (Exception ex) {
-                // Ignore
-            }
-        }
-
-        //
         // Accept
         //
         java.net.Socket socket;
@@ -465,7 +438,7 @@
                     org.omg.CORBA.CompletionStatus.COMPLETED_NO);
         }
 
-        // 
+        //
         // add these endpoints to the listenMap_
         //
         synchronized (listenMap_) {

Modified: incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java?rev=411121&r1=411120&r2=411121&view=diff
==============================================================================
--- incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java
(original)
+++ incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java
Fri Jun  2 03:53:37 2006
@@ -80,31 +80,6 @@
                     org.omg.CORBA.CompletionStatus.COMPLETED_NO);
         }
 
-        //
-        // A signed applet running in Netscape may be granted permission
-        // to make unrestricted connections. We use reflection to invoke
-        // the Netscape PrivilegeManager class in an attempt to enable
-        // the necessary privileges. If the applet hasn't been granted
-        // these privileges, an exception will be raised. The privileges
-        // are enabled only for the duration of this method.
-        //
-        if (System.getProperty("java.vendor").indexOf("Netscape") != -1) {
-            try {
-                Class nspm = Class
-                        .forName("netscape.security.PrivilegeManager");
-                Class[] enablePrivilegeArgTypes = { String.class };
-                java.lang.reflect.Method enablePrivilege = nspm.getMethod(
-                        "enablePrivilege", enablePrivilegeArgTypes);
-                java.lang.Object[] enablePrivilegeArgs = { null };
-                String[] privileges = { "IIOPRuntime", "UniversalConnect" };
-                for (int i = 0; i < privileges.length; i++) {
-                    enablePrivilegeArgs[0] = privileges[i];
-                    enablePrivilege.invoke(null, enablePrivilegeArgs);
-                }
-            } catch (Exception ex) {
-                // Ignore
-            }
-        }
 
         //
         // Create socket and connect



Mime
View raw message