Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4813004

(prefs) Add Permissions to java.util.prefs.Preferences

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • x86
    • windows_2000

      Name: jl125535 Date: 02/04/2003


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      Add Security Permissions to the Preferences.

      I'm experiencing problems when using preferences and some
      preferences should only be read by my program. There is no
      possibility to deny write access to the preferences.

      I think the permissions as used in the system properties
      should be enough. I want to allow or deny read and/or write
      permission to some preferences in the preference tree.

      A similar Permission as FilePermission could be used
      (read/write for subtrees).

      This is also a good way to replace the properties in future
      releases with system preferences.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The preferences are readable/writeable every time (except
      the backing store denies access).

      I want a Java mechanism to grant/deny access to preferences.
      (Review ID: 164328)
      ======================================================================
      ###@###.### 11/3/04 20:39 GMT

            sherman Xueming Shen
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: