Package wt.security

Class PrefsAccess

java.lang.Object
wt.security.Access
wt.security.PrefsAccess

public class PrefsAccess extends wt.security.Access
Class that provides wrappers to priviledged Preferences methods using the wt.security package. This allows applets to perform preferences operations that are typically restricted by the sandbox.

Supported API: true
  • Method Details

    • getPrefsAccess

      public static PrefsAccess getPrefsAccess(Frame parentFrame)
      Get instance of FileAccess. This instance can then be used to perform file operation that are typically restricted by the sandbox.

      Supported API: true
      Parameters:
      parentFrame - the parent frame for security dialog boxes that may be presented
    • getPrefsAccess

      public static PrefsAccess getPrefsAccess()
      Get instance of FileAccess. This instance can then be used to perform file operation that are typically restricted by the sandbox.

      Supported API: true
    • systemRoot

      public final Preferences systemRoot()
      See Preferences's systemRoot() method.

      Supported API: true
    • userRoot

      public final Preferences userRoot()
      See Preferences's userRoot() method.

      Supported API: true
    • systemNodeForPackage

      public final Preferences systemNodeForPackage(Class<?> cls)
      See Preferences's systemNodeForPackage() method.

      Supported API: true
    • userNodeForPackage

      public final Preferences userNodeForPackage(Class<?> cls)
      See Preferences's userNodeForPackage() method.

      Supported API: true
    • importPreferences

      public final void importPreferences(InputStream is) throws IOException, InvalidPreferencesFormatException
      See Preferences's importPreferences() method.

      Supported API: true
      Throws:
      IOException
      InvalidPreferencesFormatException