home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / applet / AppletSecurity$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  925 b   |  38 lines

  1. package sun.applet;
  2.  
  3. import java.security.PrivilegedAction;
  4.  
  5. class AppletSecurity$1 implements PrivilegedAction {
  6.    // $FF: synthetic field
  7.    private final String val$pkgname;
  8.    // $FF: synthetic field
  9.    private final boolean[] val$check;
  10.    // $FF: synthetic field
  11.    private final AppletSecurity this$0;
  12.  
  13.    AppletSecurity$1(AppletSecurity var1, String var2, boolean[] var3) {
  14.       this.this$0 = var1;
  15.       this.val$pkgname = var2;
  16.       this.val$check = var3;
  17.    }
  18.  
  19.    public Object run() {
  20.       String var2 = this.val$pkgname;
  21.  
  22.       int var1;
  23.       do {
  24.          String var3 = "package.restrict.access." + var2;
  25.          if (Boolean.getBoolean(var3)) {
  26.             this.val$check[0] = true;
  27.             break;
  28.          }
  29.  
  30.          if ((var1 = var2.lastIndexOf(46)) != -1) {
  31.             var2 = var2.substring(0, var1);
  32.          }
  33.       } while(var1 != -1);
  34.  
  35.       return null;
  36.    }
  37. }
  38.