< prev index next >

src/java.base/share/classes/sun/security/util/AnchorCertificates.java

Print this page

        

*** 29,40 **** --- 29,42 ---- import java.io.FileInputStream; import java.security.AccessController; import java.security.KeyStore; import java.security.PrivilegedAction; import java.security.cert.X509Certificate; + import java.util.Collections; import java.util.Enumeration; import java.util.HashSet; + import java.util.Set; import sun.security.x509.X509CertImpl; /** * The purpose of this class is to determine the trust anchor certificates is in
*** 42,52 **** */ public class AnchorCertificates { private static final Debug debug = Debug.getInstance("certpath"); private static final String HASH = "SHA-256"; ! private static HashSet<String> certs; static { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { --- 44,54 ---- */ public class AnchorCertificates { private static final Debug debug = Debug.getInstance("certpath"); private static final String HASH = "SHA-256"; ! private static Set<String> certs = Collections.emptySet(); static { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() {
< prev index next >