home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 August / PCO0897.ISO / browser / tonline / ie32.exe / IEXPLORE.CAB / CLASSES.ZIP / java / lang / SecurityManager.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-10-01  |  2.3 KB  |  138 lines

  1. package java.lang;
  2.  
  3. import java.io.FileDescriptor;
  4.  
  5. public abstract class SecurityManager {
  6.    protected boolean inCheck;
  7.  
  8.    public void checkDelete(String var1) {
  9.       throw new SecurityException();
  10.    }
  11.  
  12.    public void checkExec(String var1) {
  13.       throw new SecurityException();
  14.    }
  15.  
  16.    public synchronized void checkRegistry() {
  17.       throw new SecurityException();
  18.    }
  19.  
  20.    public void checkAccept(String var1, int var2) {
  21.       throw new SecurityException();
  22.    }
  23.  
  24.    public void checkSetFactory() {
  25.       throw new SecurityException();
  26.    }
  27.  
  28.    protected native Class[] getClassContext();
  29.  
  30.    public void checkPackageDefinition(String var1) {
  31.       throw new SecurityException();
  32.    }
  33.  
  34.    public void checkLink(String var1) {
  35.       throw new SecurityException();
  36.    }
  37.  
  38.    protected boolean inClassLoader() {
  39.       return this.currentClassLoader() != null;
  40.    }
  41.  
  42.    public void checkCreateClassLoader() {
  43.       throw new SecurityException();
  44.    }
  45.  
  46.    public void checkAccess(Thread var1) {
  47.       throw new SecurityException();
  48.    }
  49.  
  50.    public void checkAccess(ThreadGroup var1) {
  51.       throw new SecurityException();
  52.    }
  53.  
  54.    public void checkPropertiesAccess() {
  55.       throw new SecurityException();
  56.    }
  57.  
  58.    public void checkWrite(FileDescriptor var1) {
  59.       throw new SecurityException();
  60.    }
  61.  
  62.    public void checkWrite(String var1) {
  63.       throw new SecurityException();
  64.    }
  65.  
  66.    protected native int classLoaderDepth();
  67.  
  68.    public void checkListen(int var1) {
  69.       throw new SecurityException();
  70.    }
  71.  
  72.    protected native ClassLoader currentClassLoader();
  73.  
  74.    protected native int classDepth(String var1);
  75.  
  76.    public void checkExit(int var1) {
  77.       throw new SecurityException();
  78.    }
  79.  
  80.    public void checkConnect(String var1, int var2) {
  81.       throw new SecurityException();
  82.    }
  83.  
  84.    public void checkConnect(String var1, int var2, Object var3) {
  85.       throw new SecurityException();
  86.    }
  87.  
  88.    public void checkPackageAccess(String var1) {
  89.       throw new SecurityException();
  90.    }
  91.  
  92.    public synchronized void checkFileDialog() {
  93.       throw new SecurityException();
  94.    }
  95.  
  96.    public boolean getInCheck() {
  97.       return this.inCheck;
  98.    }
  99.  
  100.    protected SecurityManager() {
  101.       if (System.getSecurityManager() != null) {
  102.          throw new SecurityException("can't create SecurityManager");
  103.       }
  104.    }
  105.  
  106.    protected boolean inClass(String var1) {
  107.       return this.classDepth(var1) >= 0;
  108.    }
  109.  
  110.    public Object getSecurityContext() {
  111.       return null;
  112.    }
  113.  
  114.    public void checkPropertyAccess(String var1) {
  115.       throw new SecurityException();
  116.    }
  117.  
  118.    public void checkPropertyAccess(String var1, String var2) {
  119.       throw new SecurityException();
  120.    }
  121.  
  122.    public boolean checkTopLevelWindow(Object var1) {
  123.       return false;
  124.    }
  125.  
  126.    public void checkRead(FileDescriptor var1) {
  127.       throw new SecurityException();
  128.    }
  129.  
  130.    public void checkRead(String var1) {
  131.       throw new SecurityException();
  132.    }
  133.  
  134.    public void checkRead(String var1, Object var2) {
  135.       throw new SecurityException();
  136.    }
  137. }
  138.