Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319332 Security properties files inclusion
  3. JDK-8339636

Release Note: Support for Including Security Properties Files

XMLWordPrintable

    • generic
    • generic

      The `java.security` security properties file, and those referred to by the `java.security.properties` system property, now support including other properties files. The directive `include <path-to-a-file>` can be used for this purpose. The effect of including a file is equivalent to defining its properties inline at the inclusion point. Find more information and examples in the [Security Properties Files Inclusion section](https://docs-uat.us.oracle.com/en/java/javase/24/security/security-properties-file.html#GUID-FF09EB34-CD27-4D1B-B55B-A4A4E6A0F039) of the Security Developer Guide and in JDK-8319333.

      As a result of this change, the name `include` can no longer be used to define a property in a security properties file. If the name `include` is passed to the `java.security.Security::getProperty` or `::setProperty` APIs, an `IllegalArgumentException` is thrown.

            mbalao Martin Balao Alonso
            mbalao Martin Balao Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: