public class org.bouncycastle.jce.provider.PKIXCertPath extends java.security.cert.CertPath
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.PKIXCertPath
super_class: java.security.cert.CertPath
{
static final java.util.List certPathEncodings;
descriptor: Ljava/util/List;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private java.util.List certificates;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: aload 0
ldc "PkiPath"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
ldc "PEM"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 0
ldc "PKCS7"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 0
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic org.bouncycastle.jce.provider.PKIXCertPath.certPathEncodings:Ljava/util/List;
end local 0 5: return
LocalVariableTable:
Start End Slot Name Signature
1 5 0 encodings Ljava/util/List;
private java.util.List sortCerts(java.util.List);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=12, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.size:()I
iconst_2
if_icmpge 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 2
start local 2 3: iconst_1
istore 3
start local 3 4: iconst_1
istore 4
start local 4 5: goto 13
6: StackMap locals: javax.security.auth.x500.X500Principal int int
StackMap stack:
aload 1
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 5
start local 5 7: aload 2
aload 5
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual javax.security.auth.x500.X500Principal.equals:(Ljava/lang/Object;)Z
ifeq 10
8: aload 1
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 2
9: goto 12
10: StackMap locals: java.security.cert.X509Certificate
StackMap stack:
iconst_0
istore 3
11: goto 14
end local 5 12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
aload 1
invokeinterface java.util.List.size:()I
if_icmpne 6
end local 4 14: StackMap locals:
StackMap stack:
iload 3
ifeq 16
15: aload 1
areturn
16: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 17: new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 5
start local 5 18: iconst_0
istore 6
start local 6 19: goto 35
20: StackMap locals: java.util.List java.util.List int
StackMap stack:
aload 1
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 7
start local 7 21: iconst_0
istore 8
start local 8 22: aload 7
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 9
start local 9 23: iconst_0
istore 10
start local 10 24: goto 30
25: StackMap locals: org.bouncycastle.jce.provider.PKIXCertPath java.util.List javax.security.auth.x500.X500Principal int java.util.List java.util.List int java.security.cert.X509Certificate int javax.security.auth.x500.X500Principal int
StackMap stack:
aload 1
iload 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 11
start local 11 26: aload 11
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
aload 9
invokevirtual javax.security.auth.x500.X500Principal.equals:(Ljava/lang/Object;)Z
ifeq 29
27: iconst_1
istore 8
28: goto 31
end local 11 29: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
30: iload 10
aload 1
invokeinterface java.util.List.size:()I
if_icmpne 25
end local 10 31: StackMap locals:
StackMap stack:
iload 8
ifne 34
32: aload 4
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
33: aload 1
iload 6
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 9 end local 8 end local 7 34: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
35: iload 6
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 20
end local 6 36: aload 4
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 38
37: aload 5
areturn
38: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 39: goto 51
40: StackMap locals: int
StackMap stack:
aload 4
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
invokevirtual java.security.cert.X509Certificate.getIssuerX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 2
41: iconst_0
istore 7
start local 7 42: goto 49
43: StackMap locals: int
StackMap stack:
aload 1
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
astore 8
start local 8 44: aload 2
aload 8
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual javax.security.auth.x500.X500Principal.equals:(Ljava/lang/Object;)Z
ifeq 48
45: aload 4
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
46: aload 1
iload 7
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
47: goto 50
end local 8 48: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
49: iload 7
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 43
end local 7 50: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
51: iload 6
aload 4
invokeinterface java.util.List.size:()I
if_icmpne 40
end local 6 52: aload 1
invokeinterface java.util.List.size:()I
ifle 54
53: aload 5
areturn
54: StackMap locals:
StackMap stack:
aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 55 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 55 1 certs Ljava/util/List;
3 55 2 issuer Ljavax/security/auth/x500/X500Principal;
4 55 3 okay Z
5 14 4 i I
7 12 5 cert Ljava/security/cert/X509Certificate;
17 55 4 retList Ljava/util/List;
18 55 5 orig Ljava/util/List;
19 36 6 i I
21 34 7 cert Ljava/security/cert/X509Certificate;
22 34 8 found Z
23 34 9 subject Ljavax/security/auth/x500/X500Principal;
24 31 10 j I
26 29 11 c Ljava/security/cert/X509Certificate;
39 52 6 i I
42 50 7 j I
44 48 8 c Ljava/security/cert/X509Certificate;
MethodParameters:
Name Flags
certs
void <init>(java.util.List);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "X.509"
invokespecial java.security.cert.CertPath.<init>:(Ljava/lang/String;)V
1: aload 0
aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.sortCerts:(Ljava/util/List;)Ljava/util/List;
putfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 3 1 certificates Ljava/util/List;
MethodParameters:
Name Flags
certificates
void <init>(java.io.InputStream, java.lang.String);
descriptor: (Ljava/io/InputStream;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "X.509"
invokespecial java.security.cert.CertPath.<init>:(Ljava/lang/String;)V
1: aload 2
ldc "PkiPath"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 17
2: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 1
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 3: aload 3
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/DERObject;
astore 4
start local 4 4: aload 4
instanceof org.bouncycastle.asn1.ASN1Sequence
ifne 6
5: new java.security.cert.CertificateException
dup
ldc "input stream does not contain a ASN1 SEQUENCE while reading PkiPath encoded data to load CertPath"
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.bouncycastle.jce.provider.PKIXCertPath java.io.InputStream java.lang.String org.bouncycastle.asn1.ASN1InputStream org.bouncycastle.asn1.DERObject
StackMap stack:
aload 4
checkcast org.bouncycastle.asn1.ASN1Sequence
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjects:()Ljava/util/Enumeration;
astore 5
start local 5 7: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
8: ldc "X.509"
getstatic org.bouncycastle.jce.provider.BouncyCastleProvider.PROVIDER_NAME:Ljava/lang/String;
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
astore 6
start local 6 9: goto 15
10: StackMap locals: java.util.Enumeration java.security.cert.CertificateFactory
StackMap stack:
aload 5
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast org.bouncycastle.asn1.ASN1Encodable
astore 7
start local 7 11: aload 7
ldc "DER"
invokevirtual org.bouncycastle.asn1.ASN1Encodable.getEncoded:(Ljava/lang/String;)[B
astore 8
start local 8 12: aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
iconst_0
aload 6
13: new java.io.ByteArrayInputStream
dup
aload 8
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
14: invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
end local 8 end local 7 15: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 10
end local 6 end local 5 end local 4 end local 3 16: goto 31
17: StackMap locals: org.bouncycastle.jce.provider.PKIXCertPath java.io.InputStream java.lang.String
StackMap stack:
aload 2
ldc "PKCS7"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 18
aload 2
ldc "PEM"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 26
18: StackMap locals:
StackMap stack:
new java.io.BufferedInputStream
dup
aload 1
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 1
19: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
20: ldc "X.509"
getstatic org.bouncycastle.jce.provider.BouncyCastleProvider.PROVIDER_NAME:Ljava/lang/String;
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
astore 3
start local 3 21: goto 23
start local 4 22: StackMap locals: java.security.cert.CertificateFactory java.security.cert.Certificate
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 23: StackMap locals:
StackMap stack:
aload 3
aload 1
invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
dup
astore 4
start local 4 24: ifnonnull 22
end local 4 end local 3 25: goto 31
26: StackMap locals:
StackMap stack:
new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "unsupported encoding: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 28: new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "IOException throw while decoding CertPath:\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 29: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 3
start local 3 30: new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "BouncyCastle provider not found while trying to get a CertificateFactory:\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.security.NoSuchProviderException.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 31: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.sortCerts:(Ljava/util/List;)Ljava/util/List;
putfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
32: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 33 1 inStream Ljava/io/InputStream;
0 33 2 encoding Ljava/lang/String;
3 16 3 derInStream Lorg/bouncycastle/asn1/ASN1InputStream;
4 16 4 derObject Lorg/bouncycastle/asn1/DERObject;
7 16 5 e Ljava/util/Enumeration;
9 16 6 certFactory Ljava/security/cert/CertificateFactory;
11 15 7 element Lorg/bouncycastle/asn1/ASN1Encodable;
12 15 8 encoded [B
21 25 3 certFactory Ljava/security/cert/CertificateFactory;
22 23 4 cert Ljava/security/cert/Certificate;
24 25 4 cert Ljava/security/cert/Certificate;
28 29 3 ex Ljava/io/IOException;
30 31 3 ex Ljava/security/NoSuchProviderException;
Exception table:
from to target type
1 27 27 Class java.io.IOException
1 27 29 Class java.security.NoSuchProviderException
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
inStream
encoding
public java.util.Iterator getEncodings();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.jce.provider.PKIXCertPath.certPathEncodings:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
public byte[] getEncoded();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.getEncodings:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 5
2: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
instanceof java.lang.String
ifeq 5
4: aload 0
aload 2
checkcast java.lang.String
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.getEncoded:(Ljava/lang/String;)[B
areturn
end local 2 5: StackMap locals: java.util.Iterator
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
1 6 1 iter Ljava/util/Iterator;
3 5 2 enc Ljava/lang/Object;
Exceptions:
throws java.security.cert.CertificateEncodingException
public byte[] getEncoded(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc "PkiPath"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
1: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 2
start local 2 2: aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokeinterface java.util.List.listIterator:(I)Ljava/util/ListIterator;
astore 3
start local 3 3: goto 5
4: StackMap locals: org.bouncycastle.asn1.ASN1EncodableVector java.util.ListIterator
StackMap stack:
aload 2
aload 0
aload 3
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.toASN1Object:(Ljava/security/cert/X509Certificate;)Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 4
6: aload 0
new org.bouncycastle.asn1.DERSequence
dup
aload 2
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.toDEREncoded:(Lorg/bouncycastle/asn1/ASN1Encodable;)[B
areturn
end local 3 end local 2 7: StackMap locals:
StackMap stack:
aload 1
ldc "PKCS7"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 26
8: new org.bouncycastle.asn1.pkcs.ContentInfo
dup
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.data:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aconst_null
invokespecial org.bouncycastle.asn1.pkcs.ContentInfo.<init>:(Lorg/bouncycastle/asn1/DERObjectIdentifier;Lorg/bouncycastle/asn1/DEREncodable;)V
astore 2
start local 2 9: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 3
start local 3 10: iconst_0
istore 4
start local 4 11: goto 14
12: StackMap locals: org.bouncycastle.asn1.pkcs.ContentInfo org.bouncycastle.asn1.ASN1EncodableVector int
StackMap stack:
aload 3
aload 0
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.security.cert.X509Certificate
invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.toASN1Object:(Ljava/security/cert/X509Certificate;)Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
13: iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 12
end local 4 15: new org.bouncycastle.asn1.pkcs.SignedData
dup
16: new org.bouncycastle.asn1.DERInteger
dup
iconst_1
invokespecial org.bouncycastle.asn1.DERInteger.<init>:(I)V
17: new org.bouncycastle.asn1.DERSet
dup
invokespecial org.bouncycastle.asn1.DERSet.<init>:()V
18: aload 2
19: new org.bouncycastle.asn1.DERSet
dup
aload 3
invokespecial org.bouncycastle.asn1.DERSet.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
20: aconst_null
21: new org.bouncycastle.asn1.DERSet
dup
invokespecial org.bouncycastle.asn1.DERSet.<init>:()V
22: invokespecial org.bouncycastle.asn1.pkcs.SignedData.<init>:(Lorg/bouncycastle/asn1/DERInteger;Lorg/bouncycastle/asn1/ASN1Set;Lorg/bouncycastle/asn1/pkcs/ContentInfo;Lorg/bouncycastle/asn1/ASN1Set;Lorg/bouncycastle/asn1/ASN1Set;Lorg/bouncycastle/asn1/ASN1Set;)V
astore 4
start local 4 23: aload 0
new org.bouncycastle.asn1.pkcs.ContentInfo
dup
24: getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.signedData:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 4
invokespecial org.bouncycastle.asn1.pkcs.ContentInfo.<init>:(Lorg/bouncycastle/asn1/DERObjectIdentifier;Lorg/bouncycastle/asn1/DEREncodable;)V
25: invokevirtual org.bouncycastle.jce.provider.PKIXCertPath.toDEREncoded:(Lorg/bouncycastle/asn1/ASN1Encodable;)[B
areturn
end local 4 end local 3 end local 2 26: StackMap locals:
StackMap stack:
aload 1
ldc "PEM"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 39
27: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 28: new org.bouncycastle.openssl.PEMWriter
dup
new java.io.OutputStreamWriter
dup
aload 2
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
invokespecial org.bouncycastle.openssl.PEMWriter.<init>:(Ljava/io/Writer;)V
astore 3
start local 3 29: iconst_0
istore 4
start local 4 30: goto 33
31: StackMap locals: java.io.ByteArrayOutputStream org.bouncycastle.openssl.PEMWriter int
StackMap stack:
aload 3
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual org.bouncycastle.openssl.PEMWriter.writeObject:(Ljava/lang/Object;)V
32: iinc 4 1
StackMap locals:
StackMap stack:
33: iload 4
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 31
end local 4 34: aload 3
invokevirtual org.bouncycastle.openssl.PEMWriter.close:()V
35: goto 38
36: StackMap locals: org.bouncycastle.jce.provider.PKIXCertPath java.lang.String java.io.ByteArrayOutputStream org.bouncycastle.openssl.PEMWriter
StackMap stack: java.lang.Exception
pop
37: new java.security.cert.CertificateEncodingException
dup
ldc "can't encode certificate for PEM encoded path"
invokespecial java.security.cert.CertificateEncodingException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 3 end local 2 39: StackMap locals:
StackMap stack:
new java.security.cert.CertificateEncodingException
dup
new java.lang.StringBuilder
dup
ldc "unsupported encoding: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateEncodingException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 40 1 encoding Ljava/lang/String;
2 7 2 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
3 7 3 iter Ljava/util/ListIterator;
9 26 2 encInfo Lorg/bouncycastle/asn1/pkcs/ContentInfo;
10 26 3 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
11 15 4 i I
23 26 4 sd Lorg/bouncycastle/asn1/pkcs/SignedData;
28 39 2 bOut Ljava/io/ByteArrayOutputStream;
29 39 3 pWrt Lorg/bouncycastle/openssl/PEMWriter;
30 34 4 i I
Exception table:
from to target type
29 35 36 Class java.lang.Exception
Exceptions:
throws java.security.cert.CertificateEncodingException
MethodParameters:
Name Flags
encoding
public java.util.List getCertificates();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield org.bouncycastle.jce.provider.PKIXCertPath.certificates:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
private org.bouncycastle.asn1.DERObject toASN1Object(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Lorg/bouncycastle/asn1/DERObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 1
invokevirtual java.security.cert.X509Certificate.getEncoded:()[B
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:([B)V
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/DERObject;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 3: new java.security.cert.CertificateEncodingException
dup
new java.lang.StringBuilder
dup
ldc "Exception while encoding certificate: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateEncodingException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 4 1 cert Ljava/security/cert/X509Certificate;
3 4 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Exceptions:
throws java.security.cert.CertificateEncodingException
MethodParameters:
Name Flags
cert
private byte[] toDEREncoded(org.bouncycastle.asn1.ASN1Encodable);
descriptor: (Lorg/bouncycastle/asn1/ASN1Encodable;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "DER"
invokevirtual org.bouncycastle.asn1.ASN1Encodable.getEncoded:(Ljava/lang/String;)[B
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: new java.security.cert.CertificateEncodingException
dup
new java.lang.StringBuilder
dup
ldc "Exception thrown: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.cert.CertificateEncodingException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/jce/provider/PKIXCertPath;
0 4 1 obj Lorg/bouncycastle/asn1/ASN1Encodable;
3 4 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.security.cert.CertificateEncodingException
MethodParameters:
Name Flags
obj
}
SourceFile: "PKIXCertPath.java"