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 4148850 26 * 27 * @summary synopsis: need to obtain remote references securely 28 * 29 * @author Laird Dornin; code borrowed from Ann Wollrath 30 * 31 * @library ../../../../testlibrary 32 * @build TestLibrary Compress Hello HelloImpl HelloImpl_Stub 33 * @run main/othervm/policy=security.policy/timeout=240 UseCustomSocketFactory 34 */ 35 36 import java.io.*; 37 import java.rmi.*; 38 import java.rmi.server.*; 39 import java.rmi.registry.*; 40 41 /** 42 * Test ensures that the rmiregistry is capable of running over customx 43 * (i.e. compression) client and server socket factories. 44 */ 45 public class UseCustomSocketFactory { 46 47 Hello hello = null; 48 49 public static void main(String[] args) { 50 51 Registry registry = null; | 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 4148850 26 * 27 * @summary synopsis: need to obtain remote references securely 28 * 29 * @author Laird Dornin; code borrowed from Ann Wollrath 30 * 31 * @library ../../../../testlibrary 32 * @modules java.rmi/sun.rmi.registry 33 * java.rmi/sun.rmi.server 34 * java.rmi/sun.rmi.transport 35 * java.rmi/sun.rmi.transport.tcp 36 * @build TestLibrary Compress Hello HelloImpl HelloImpl_Stub 37 * @run main/othervm/policy=security.policy/timeout=240 UseCustomSocketFactory 38 */ 39 40 import java.io.*; 41 import java.rmi.*; 42 import java.rmi.server.*; 43 import java.rmi.registry.*; 44 45 /** 46 * Test ensures that the rmiregistry is capable of running over customx 47 * (i.e. compression) client and server socket factories. 48 */ 49 public class UseCustomSocketFactory { 50 51 Hello hello = null; 52 53 public static void main(String[] args) { 54 55 Registry registry = null; |