Alternate implementation - this version only contains one argument - the name 
of the properties file. If an include statement is needed, it should be 
inserted in the properties file and it will always be added as the last line of 
the the conf/security/java.security configuration file.. 

See https://github.com/openjdk/jdk/pull/30635 for the other implementation. 

This is a new jlink plugin which allows the user to specify values of security 
properties it wants to override in the conf/security/java.security 
configuration file in a custom runtime image. This enhancement, along with 
https://github.com/openjdk/jdk/pull/29700 allow users to more easily create 
runtimes that address the specific security requirements of their applications.

The command-line syntax takes a file containing properties that the user wants 
to override. The file can also contain an include statement which will be added 
as the last line of the conf/security/java.security configuration file.

For example:

jlink --security-properties props.security

where props.security is a file containing one more more properties in the 
java.security file syntax.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Alternate jlink --security-properties implementation. There is no separate
 - Document that comments in the properties file are ignored.
 - Merge branch 'master' into open5
 - Merge remote-tracking branch 'refs/remotes/origin/open5' into open5
 - Remove whitespace.
 - Add tests for include option. Add more tests for invalid option syntax.
 - Add support for include option. Add props option for specifying properties 
file.
 - Update docs to include new props and include options.
 - Improve description of option.
 - Improve multi-line value comment.
 - ... and 25 more: https://git.openjdk.org/jdk/compare/c289cf50...79aa0d7a

Changes: https://git.openjdk.org/jdk/pull/31884/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31884&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377819
  Stats: 349 lines in 5 files changed: 348 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/31884.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31884/head:pull/31884

PR: https://git.openjdk.org/jdk/pull/31884

Reply via email to