RFR: JDK-8285504 Minor cleanup could be done in javax.net [v2]

Bradford Wetmore wetmore at openjdk.java.net
Tue Apr 26 20:43:56 UTC 2022


On Tue, 26 Apr 2022 19:49:11 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> src/java.base/share/classes/javax/net/ssl/KeyManagerFactory.java line 69:
>> 
>>> 67:         String type;
>>> 68:         type = AccessController.doPrivileged((PrivilegedAction<String>) () ->
>>> 69:             Security.getProperty("ssl.KeyManagerFactory.algorithm"));
>> 
>> We can probably use `sun.security.action.GetPropertyAction::privilegedGetProperty`. This is inside `java.base` so that class is always available.
>
> Wasn't there another bug to address this?

Perhaps as part of [JDK-6725221](https://bugs.openjdk.java.net/browse/JDK-6725221)?

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

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



More information about the security-dev mailing list