mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 07:15:31 +00:00
8344924: Default CA certificates loaded despite request to use custom keystore
Reviewed-by: mullan Backport-of: 4c39e9faa0cb8e4fd00d8b9dc0ac5ad64d6b287d
This commit is contained in:
parent
ba02e0bd1b
commit
4ecb28ccdc
@ -25,7 +25,6 @@
|
||||
|
||||
package sun.security.ssl;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.net.Socket;
|
||||
import java.security.*;
|
||||
import java.security.cert.*;
|
||||
@ -52,15 +51,6 @@ import sun.security.validator.*;
|
||||
final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
||||
implements X509TrustManager {
|
||||
|
||||
static {
|
||||
// eagerly initialize to avoid pinning virtual thread during TLS handshake
|
||||
try {
|
||||
MethodHandles.lookup().ensureInitialized(AnchorCertificates.class);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
}
|
||||
|
||||
private final String validatorType;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user