wt.security
Class PrefsAccess

java.lang.Object
  extended by wt.security.Access
      extended by 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 Summary
static PrefsAccess getPrefsAccess()
          Get instance of FileAccess.
static PrefsAccess getPrefsAccess(Frame parentFrame)
          Get instance of FileAccess.
 void importPreferences(InputStream is)
          See Preferences's importPreferences() method.
 Preferences systemNodeForPackage(Class<?> cls)
          See Preferences's systemNodeForPackage() method.
 Preferences systemRoot()
          See Preferences's systemRoot() method.
 Preferences userNodeForPackage(Class<?> cls)
          See Preferences's userNodeForPackage() method.
 Preferences userRoot()
          See Preferences's userRoot() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

Parameters:
parentFrame - the parent frame for security dialog boxes that may be presented

Supported API: true

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