You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ml...@apache.org on 2006/08/24 17:58:30 UTC

svn commit: r434409 - in /incubator/harmony/enhanced/classlib/trunk/modules/suncompat: META-INF/MANIFEST.MF make/patternset.txt src/main/java/com/sun/net/ssl/internal/ssl/Provider.java

Author: mloenko
Date: Thu Aug 24 08:58:30 2006
New Revision: 434409

URL: http://svn.apache.org/viewvc?rev=434409&view=rev
Log:
enable Jigsaw https server

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/net/ssl/internal/ssl/Provider.java
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/suncompat/META-INF/MANIFEST.MF
    incubator/harmony/enhanced/classlib/trunk/modules/suncompat/make/patternset.txt

Modified: incubator/harmony/enhanced/classlib/trunk/modules/suncompat/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/suncompat/META-INF/MANIFEST.MF?rev=434409&r1=434408&r2=434409&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/suncompat/META-INF/MANIFEST.MF (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/suncompat/META-INF/MANIFEST.MF Thu Aug 24 08:58:30 2006
@@ -8,5 +8,6 @@
 Import-Package: java.io,
  java.lang,
  org.apache.harmony.luni.util
-Export-Package: sun.misc
+Export-Package: sun.misc,
+ com.sun
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/suncompat/make/patternset.txt
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/suncompat/make/patternset.txt?rev=434409&r1=434408&r2=434409&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/suncompat/make/patternset.txt (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/suncompat/make/patternset.txt Thu Aug 24 08:58:30 2006
@@ -13,3 +13,4 @@
 # limitations under the License.
 
 sun/**
+com/sun/**

Added: incubator/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/net/ssl/internal/ssl/Provider.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/net/ssl/internal/ssl/Provider.java?rev=434409&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/net/ssl/internal/ssl/Provider.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/suncompat/src/main/java/com/sun/net/ssl/internal/ssl/Provider.java Thu Aug 24 08:58:30 2006
@@ -0,0 +1,36 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.sun.net.ssl.internal.ssl;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import org.apache.harmony.xnet.provider.jsse.JSSEProvider;
+
+public final class Provider extends java.security.Provider {
+
+    private static final java.security.Provider jsse = new JSSEProvider();
+
+    public Provider() {
+        super(jsse.getName(), jsse.getVersion(), jsse.getInfo());
+        AccessController.doPrivileged(new PrivilegedAction() {
+
+            public Object run() {
+                putAll(jsse);
+                return null;
+            }
+        });
+    }
+}