FileDocCategorySizeDatePackage
AccessTest.javaAPI DocExample1713Sun Oct 25 18:13:34 GMT 1998None

AccessTest

public class AccessTest extends Applet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

		SocketPermission sp = new SocketPermission(getParameter("host") + ":6000", "connect");
		try {
			AccessController.checkPermission(sp);
			System.out.println("Ok to open socket");
		} catch (AccessControlException ace) {
			System.out.println(ace);
		}