public final class sun.security.validator.TrustStoreUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.validator.TrustStoreUtil
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/validator/TrustStoreUtil;
public static java.util.Set<java.security.cert.X509Certificate> getTrustedCerts(java.security.KeyStore);
descriptor: (Ljava/security/KeyStore;)Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.security.KeyStore.aliases:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 14
3: StackMap locals: java.util.Set java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 0
aload 3
invokevirtual java.security.KeyStore.isCertificateEntry:(Ljava/lang/String;)Z
ifeq 9
5: aload 0
aload 3
invokevirtual java.security.KeyStore.getCertificate:(Ljava/lang/String;)Ljava/security/cert/Certificate;
astore 4
start local 4 6: aload 4
instanceof java.security.cert.X509Certificate
ifeq 14
7: aload 1
aload 4
checkcast java.security.cert.X509Certificate
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 8: goto 14
StackMap locals: java.lang.String
StackMap stack:
9: aload 0
aload 3
invokevirtual java.security.KeyStore.isKeyEntry:(Ljava/lang/String;)Z
ifeq 14
10: aload 0
aload 3
invokevirtual java.security.KeyStore.getCertificateChain:(Ljava/lang/String;)[Ljava/security/cert/Certificate;
astore 4
start local 4 11: aload 4
ifnull 14
aload 4
arraylength
ifle 14
12: aload 4
iconst_0
aaload
instanceof java.security.cert.X509Certificate
ifeq 14
13: aload 1
aload 4
iconst_0
aaload
checkcast java.security.cert.X509Certificate
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
end local 2 15: goto 17
StackMap locals: java.security.KeyStore java.util.Set
StackMap stack: java.security.KeyStoreException
16: pop
17: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 ks Ljava/security/KeyStore;
1 18 1 set Ljava/util/Set<Ljava/security/cert/X509Certificate;>;
2 15 2 e Ljava/util/Enumeration<Ljava/lang/String;>;
4 14 3 alias Ljava/lang/String;
6 8 4 cert Ljava/security/cert/Certificate;
11 14 4 certs [Ljava/security/cert/Certificate;
Exception table:
from to target type
1 15 16 Class java.security.KeyStoreException
Signature: (Ljava/security/KeyStore;)Ljava/util/Set<Ljava/security/cert/X509Certificate;>;
MethodParameters:
Name Flags
ks
}
SourceFile: "TrustStoreUtil.java"