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
Supported API: true
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
Modifier and TypeMethodDescriptionstatic PrefsAccessGet instance ofFileAccess.static PrefsAccessgetPrefsAccess(Frame parentFrame) Get instance ofFileAccess.final voidSeePreferences's importPreferences() method.final PreferencessystemNodeForPackage(Class<?> cls) SeePreferences's systemNodeForPackage() method.final PreferencesSeePreferences's systemRoot() method.final PreferencesuserNodeForPackage(Class<?> cls) SeePreferences's userNodeForPackage() method.final PreferencesuserRoot()SeePreferences's userRoot() method.
-
Method Details
-
getPrefsAccess
Get instance ofFileAccess. 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
Get instance ofFileAccess. This instance can then be used to perform file operation that are typically restricted by the sandbox.
Supported API: true -
systemRoot
-
userRoot
-
systemNodeForPackage
-
userNodeForPackage
-
importPreferences
public final void importPreferences(InputStream is) throws IOException, InvalidPreferencesFormatException
-