< prev index next >

src/java.base/share/classes/sun/security/provider/JavaKeyStore.java

Print this page
rev 55964 : 8162628: Migrate cacerts keystore from JKS

*** 66,79 **** String convertAlias(String alias) { return alias; } } ! // special JKS that supports JKS and PKCS12 file formats ! public static final class DualFormatJKS extends KeyStoreDelegator { ! public DualFormatJKS() { ! super("JKS", JKS.class, "PKCS12", PKCS12KeyStore.class); } } private static final Debug debug = Debug.getInstance("keystore"); private static final int MAGIC = 0xfeedfeed; --- 66,81 ---- String convertAlias(String alias) { return alias; } } ! // special JKS that supports JKS/PKCS12/PEM file formats ! public static final class MultipleFormatJKS extends KeyStoreDelegator { ! public MultipleFormatJKS() { ! super("JKS", JKS.class, ! List.of("PKCS12", "PEM"), ! List.of(PKCS12KeyStore.class, PemKeyStore.class)); } } private static final Debug debug = Debug.getInstance("keystore"); private static final int MAGIC = 0xfeedfeed;
< prev index next >