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

Should allow policy class to be provided as an extension or on CLASSPATH

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.4.0
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description

      We allow people to specify the class they want to use as the policy file:

      # Class to instantiate as the system Policy. This is the name of the class
      # that will be used as the Policy object.
      #
      policy.provider=sun.security.provider.PolicyFile

      But in java.security.Policy we use Class.forName:

          policy = (Policy)Class.forName(policy_class).newInstance();

      Which means the policy class must be on the bootclasspath. I'm
      thinking we should change that to search the system class loader, so
      the policy class can also exist in an extension or on the CLASSPATH.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gellisonsunw Gary Ellison (Inactive)
                Reporter:
                jlueheorcl Jan Luehe (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: