Skip to content

Commit

Permalink
Re-run initialization of JCAUtil.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstancu committed Oct 27, 2021
1 parent acf48dd commit 2a20d63
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ public void duringSetup(DuringSetupAccess a) {
rci.rerunInitialization(clazz(access, "com.sun.crypto.provider.SunJCE$SecureRandomHolder"), "for substitutions");
rci.rerunInitialization(clazz(access, "sun.security.krb5.Confounder"), "for substitutions");

if (JavaVersionUtil.JAVA_SPEC >= 17) {
rci.rerunInitialization(clazz(access, "sun.security.jca.JCAUtil"), "JCAUtil.def holds a SecureRandom.");
}

/*
* When SSLContextImpl$DefaultManagersHolder sets-up the TrustManager in its initializer it
* gets the value of the -Djavax.net.ssl.trustStore and -Djavax.net.ssl.trustStorePassword
Expand Down

0 comments on commit 2a20d63

Please sign in to comment.