Some setup code in these classes could use/enhance the existing OpenFileInputStreamAction and use privileged access to System.properties via GetPropertyAction to simplify the code to get various properties.
Comments
Not worth the effort for something already deprecated for removal.
22-07-2022
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk/pull/9542
Date: 2022-07-18 17:53:56 +0000
19-07-2022
TrustStoreManager also needs to be modified.
19-07-2022
Proposal out which also improve the API to better disallow insecure coding.
06-06-2016
The API used in the suggested is under review to make it more clear that these are performing a privileged action whose inputs and results should be treated with extra care.