10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4179055 26 * @summary Some java apps need to have access to read "accessClassInPackage.sun.rmi.server" 27 * @author Laird Dornin 28 * 29 * @library ../../../testlibrary 30 * @build TestLibrary RMID ActivationLibrary 31 * CanCreateStubs StubClassesPermitted_Stub 32 * @run main/othervm/java.security.policy=security.policy/secure=java.lang.SecurityManager/timeout=240 StubClassesPermitted 33 */ 34 35 import java.io.*; 36 import java.rmi.*; 37 import java.rmi.server.*; 38 import java.rmi.registry.Registry; 39 import java.rmi.activation.*; 40 import java.security.CodeSource; 41 import java.util.Properties; 42 import java.util.StringTokenizer; 43 44 /** 45 * The RMI activation system needs to explicitly allow itself to 46 * create the following sun.* classes on behalf of code that runs with 47 * user privileges and needs to make use of RMI activation: 48 * 49 * sun.rmi.server.Activation$ActivationMonitorImpl_Stub | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4179055 26 * @summary Some java apps need to have access to read "accessClassInPackage.sun.rmi.server" 27 * @author Laird Dornin 28 * 29 * @library ../../../testlibrary 30 * @modules java.base/sun.security.provider 31 * java.rmi/sun.rmi.registry 32 * java.rmi/sun.rmi.server 33 * java.rmi/sun.rmi.transport 34 * java.rmi/sun.rmi.transport.tcp 35 * @build TestLibrary RMID ActivationLibrary 36 * CanCreateStubs StubClassesPermitted_Stub 37 * @run main/othervm/java.security.policy=security.policy/secure=java.lang.SecurityManager/timeout=240 StubClassesPermitted 38 */ 39 40 import java.io.*; 41 import java.rmi.*; 42 import java.rmi.server.*; 43 import java.rmi.registry.Registry; 44 import java.rmi.activation.*; 45 import java.security.CodeSource; 46 import java.util.Properties; 47 import java.util.StringTokenizer; 48 49 /** 50 * The RMI activation system needs to explicitly allow itself to 51 * create the following sun.* classes on behalf of code that runs with 52 * user privileges and needs to make use of RMI activation: 53 * 54 * sun.rmi.server.Activation$ActivationMonitorImpl_Stub |