/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.FileDescriptor; import java.net.InetAddress; import java.security.Permission; public class SecurityManager extends Object { @Deprecated protected boolean inCheck; public SecurityManager() { } @Deprecated native public boolean getInCheck(); native protected Class[] getClassContext(); @Deprecated native protected ClassLoader currentClassLoader(); @Deprecated native protected Class currentLoadedClass(); @Deprecated native protected int classDepth(String name); @Deprecated native protected int classLoaderDepth(); @Deprecated native protected boolean inClass(String name); @Deprecated native protected boolean inClassLoader(); native public Object getSecurityContext(); native public void checkPermission(Permission perm); native public void checkPermission(Permission perm, Object context); native public void checkCreateClassLoader(); native public void checkAccess(Thread t); native public void checkAccess(ThreadGroup g); native public void checkExit(int status); native public void checkExec(String cmd); native public void checkLink(String lib); native public void checkRead(FileDescriptor fd); native public void checkRead(String file); native public void checkRead(String file, Object context); native public void checkWrite(FileDescriptor fd); native public void checkWrite(String file); native public void checkDelete(String file); native public void checkConnect(String host, int port); native public void checkConnect(String host, int port, Object context); native public void checkListen(int port); native public void checkAccept(String host, int port); native public void checkMulticast(InetAddress maddr); @Deprecated native public void checkMulticast(InetAddress maddr, byte ttl); native public void checkPropertiesAccess(); native public void checkPropertyAccess(String key); native public boolean checkTopLevelWindow(Object window); native public void checkPrintJobAccess(); native public void checkSystemClipboardAccess(); native public void checkAwtEventQueueAccess(); native public void checkPackageAccess(String pkg); native public void checkPackageDefinition(String pkg); native public void checkSetFactory(); native public void checkMemberAccess(Class clazz, int which); native public void checkSecurityAccess(String target); native public ThreadGroup getThreadGroup(); }