home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / netscape / security / TargetBinaryInstall.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  1.5 KB  |  22 lines

  1. package netscape.security;
  2.  
  3. public class TargetBinaryInstall {
  4.    static final int HIGH_RISK = 30;
  5.    static final String RiskColorHigh = "#ffaaaa";
  6.    static final String desc = "Installing and launching requested programs on your computer";
  7.    static final String detailDesc = "Installing and running software that you requested on your computer. This may include checking for existing software and downloading new software to your computer's hard disk. You should only grant this access if you are installing or updating from a software source that you trust.";
  8.    static final String helpURL = "--";
  9.  
  10.    public static void registerTarget() {
  11.       if (Target.findTarget("BinaryInstall") == null) {
  12.          Target[] var1 = new Target[3];
  13.          Principal var2 = PrivilegeManager.getSystemPrincipal();
  14.          var1[0] = Target.findTarget("UniversalFileAccess");
  15.          var1[1] = Target.findTarget("UniversalExecAccess");
  16.          var1[2] = Target.findTarget("UniversalPropertyWrite");
  17.          UserTarget var0 = new UserTarget("BinaryInstall", var2, 30, "#ffaaaa", "Installing and launching requested programs on your computer", "Installing and running software that you requested on your computer. This may include checking for existing software and downloading new software to your computer's hard disk. You should only grant this access if you are installing or updating from a software source that you trust.", "--", var1);
  18.          ((Target)var0).registerTarget();
  19.       }
  20.    }
  21. }
  22.