Package sun.security.action

Examples of sun.security.action.GetPropertyAction


            }

            /* Look up the class name */
            if (handlerClassName == null) {
                handlerClassName = ((String) AccessController.doPrivileged(
                    new GetPropertyAction(handlerPropName)));
                if (handlerClassName == null) {
                    handlerClassName = NO_HANDLER; /* Do not try this again */
                    return false;
                }
            }
View Full Code Here


    private static synchronized TimeZone setDefaultZone() {
  TimeZone tz = null;
  // get the time zone ID from the system properties
  String zoneID = AccessController.doPrivileged(
    new GetPropertyAction("user.timezone"));

  // if the time zone ID is not set (yet), perform the
  // platform to Java time zone ID mapping.
  if (zoneID == null || zoneID.equals("")) {
      String country = AccessController.doPrivileged(
        new GetPropertyAction("user.country"));
      String javaHome = AccessController.doPrivileged(
        new GetPropertyAction("java.home"));
      try {
    zoneID = getSystemTimeZoneID(javaHome, country);
    if (zoneID == null) {
        zoneID = GMT_ID;
    }
View Full Code Here

        // deliver which don't have a class-path attribute. If one of
        // these jars is changed to include such an attribute this code
        // must be changed.
        if (javaHome == null) {
            javaHome = (String) AccessController.doPrivileged(
                new GetPropertyAction("java.home"));
        }
        if (jarNames == null) {
            String[] names = new String[10];
            String fileSep = File.separator;
            int i = 0;
View Full Code Here

      if (!sm.checkTopLevelWindow(this)) {
    // make sure the privileged action is only
    // for getting the property! We don't want the
    // above checkTopLevelWindow call to always succeed!
    warningString = (String) AccessController.doPrivileged(
          new GetPropertyAction("awt.appletWarning",
              "Java Applet Window"));
      }
  }
    }
View Full Code Here

        // do not synchronize this method - see 4071298
        // it's OK if more than one default locale happens to be created
        if (defaultLocale == null) {
            String language, region, country, variant;
            language = (String) AccessController.doPrivileged(
                            new GetPropertyAction("user.language", "en"));
            // for compatibility, check for old user.region property
            region = (String) AccessController.doPrivileged(
                            new GetPropertyAction("user.region"));
            if (region != null) {
                // region can be of form country, country_variant, or _variant
                int i = region.indexOf('_');
                if (i >= 0) {
                    country = region.substring(0, i);
                    variant = region.substring(i + 1);
                } else {
                    country = region;
                    variant = "";
                }
            } else {
                country = (String) AccessController.doPrivileged(
                                new GetPropertyAction("user.country", ""));
                variant = (String) AccessController.doPrivileged(
                                new GetPropertyAction("user.variant", ""));
            }
            defaultLocale = getInstance(language, country, variant);
        }
        return defaultLocale;
    }
View Full Code Here

      objNum + "]";
    }

    private static boolean useRandomIDs() {
  String value = AccessController.doPrivileged(
      new GetPropertyAction("java.rmi.server.randomIDs"));
  return value == null ? true : Boolean.parseBoolean(value);
    }
View Full Code Here

                    (Boolean) toolkit.getDesktopProperty("win.xpstyle.themeActive");
            if (themeActive == null) {
                themeActive = Boolean.FALSE;
            }
            if (themeActive.booleanValue()) {
                GetPropertyAction propertyAction =
                        new GetPropertyAction("swing.noxp");
                if (AccessController.doPrivileged(propertyAction) == null &&
                        ThemeReader.isThemed() &&
                        !(UIManager.getLookAndFeel()
                                instanceof WindowsClassicLookAndFeel)) {
View Full Code Here

        }

        // Get the contents of that directory.  (Note that the call to getProperty()
        // is needed because new File("").exists() returns false.  According to Sun, this
        // behavior is "not a bug".)
        String user_dir = AccessController.doPrivileged(new GetPropertyAction("user.dir"));
        final File f = dir.isEmpty() ? new File(user_dir) : new File(dir);
        final String[] names = AccessController.doPrivileged(
            new PrivilegedAction<String[]>() {
                public String[] run() {
                    if (!f.exists()) {
View Full Code Here

    static boolean shouldReconfigure(PropertyChangeEvent e) {
        if (e.getPropertyName() == null) {
            synchronized(AbstractAction.class) {
                if (RECONFIGURE_ON_NULL == null) {
                    RECONFIGURE_ON_NULL = Boolean.valueOf(
                        AccessController.doPrivileged(new GetPropertyAction(
                        "swing.actions.reconfigureOnNull", "false")));
                }
                return RECONFIGURE_ON_NULL;
            }
        }
View Full Code Here

    private static synchronized TimeZone setDefaultZone() {
        TimeZone tz;
        // get the time zone ID from the system properties
        String zoneID = AccessController.doPrivileged(
                new GetPropertyAction("user.timezone"));

        // if the time zone ID is not set (yet), perform the
        // platform to Java time zone ID mapping.
        if (zoneID == null || zoneID.isEmpty()) {
            String country = AccessController.doPrivileged(
                    new GetPropertyAction("user.country"));
            String javaHome = AccessController.doPrivileged(
                    new GetPropertyAction("java.home"));
            try {
                zoneID = getSystemTimeZoneID(javaHome, country);
                if (zoneID == null) {
                    zoneID = GMT_ID;
                }
View Full Code Here

TOP

Related Classes of sun.security.action.GetPropertyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.