1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
// java.lang.SecurityManager
// An implementation of the Java Language Specification section 20.17
// Written by Charles Briscoe-Smith; refer to the file LEGAL for details.
package java.lang;
public abstract class SecurityManager {
protected boolean inCheck=false;
protected SecurityManager() throws SecurityException
{
if (System.getSecurityManager()!=null)
throw new SecurityException();
}
protected Class[] getClassContext()
{ throw new InternalError("Can't analyse execution stack"); }
protected int classDepth()
{ throw new InternalError("Can't analyse execution stack"); }
protected boolean inClass()
{ throw new InternalError("Can't analyse execution stack"); }
protected ClassLoader currentClassLoader() { return null; }
protected int classLoaderDepth() { return -1; }
protected boolean inClassLoader() { return false; }
public boolean getInCheck() { return inCheck; }
public void checkCreateClassLoader() throws SecurityException
{ throw new SecurityException(); }
// public void checkAccess(Thread t) throws SecurityException
// { throw new SecurityException(); }
// public void checkAccess(ThreadGroup g) throws SecurityException
// {throw new SecurityException();}
public void checkExit(int rv) throws SecurityException
{ throw new SecurityException(); }
public void checkExec(String cmd) throws SecurityException
{ throw new SecurityException(); }
public void checkPropertiesAccess() throws SecurityException
{ throw new SecurityException(); }
public void checkPropertyAccess(String n) throws SecurityException
{ throw new SecurityException(); }
public void checkLink(String n) throws SecurityException
{ throw new SecurityException(); }
public void checkRead(int fd) throws SecurityException
{ throw new SecurityException(); }
public void checkRead(String fn) throws SecurityException
{ throw new SecurityException(); }
public void checkWrite(int fd) throws SecurityException
{ throw new SecurityException(); }
public void checkWrite(String fn) throws SecurityException
{ throw new SecurityException(); }
public void checkDelete(String fn) throws SecurityException
{ throw new SecurityException(); }
public void checkConnect(String h, int p) throws SecurityException
{ throw new SecurityException(); }
public void checkListen(int p) throws SecurityException
{ throw new SecurityException(); }
public void checkAccept(String h, int p) throws SecurityException
{ throw new SecurityException(); }
public void checkSetFactory() throws SecurityException
{ throw new SecurityException(); }
public boolean checkTopLevelWindow() throws SecurityException
{ return false; }
public void checkPackageAccess(String pn) throws SecurityException
{ throw new SecurityException(); }
public void checkPackageDefinition(String pn) throws SecurityException
{ throw new SecurityException(); }
}
|