RFR: 8274143 Disable "invalid entry for security.provider.X" error message in log file when security.provider.X is empty

djelinski github.com+30433125+djelinski at openjdk.java.net
Fri Sep 24 08:15:10 UTC 2021

The default list of providers defined in java.security file can be overridden with a custom file, declared with `-Djava.security.properties=/path/to/custom.security` command line parameter.
If the new list of providers is shorter than the original one, it is necessary to add an empty entry to terminate the list, like:

security.provider.1=BCFIPS C:HYBRID;ENABLE{All}
security.provider.3=BCJSSE fips:BCFIPS

otherwise some providers from the default list will still be used.

Currently Java outputs an error message on standard error when it encounters an empty entry on the provider list. This PR silences that message.


Commit messages:
 - Hide "invalid entry" error message

Changes: https://git.openjdk.java.net/jdk/pull/5674/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5674&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274143
  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5674.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5674/head:pull/5674

PR: https://git.openjdk.java.net/jdk/pull/5674

More information about the security-dev mailing list