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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.4.0
    • 1.2.0
    • security-libs
    • beta2
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: