public class org.bouncycastle.cert.ocsp.OCSPReqBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.ocsp.OCSPReqBuilder
super_class: java.lang.Object
{
private java.util.List list;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.x509.GeneralName requestorName;
descriptor: Lorg/bouncycastle/asn1/x509/GeneralName;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.x509.Extensions requestExtensions;
descriptor: Lorg/bouncycastle/asn1/x509/Extensions;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.list:Ljava/util/List;
2: aload 0
aconst_null
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestorName:Lorg/bouncycastle/asn1/x509/GeneralName;
3: aload 0
aconst_null
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestExtensions:Lorg/bouncycastle/asn1/x509/Extensions;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
public org.bouncycastle.cert.ocsp.OCSPReqBuilder addRequest(org.bouncycastle.cert.ocsp.CertificateID);
descriptor: (Lorg/bouncycastle/cert/ocsp/CertificateID;)Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.list:Ljava/util/List;
new org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject
dup
aload 0
aload 1
aconst_null
invokespecial org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject.<init>:(Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;Lorg/bouncycastle/cert/ocsp/CertificateID;Lorg/bouncycastle/asn1/x509/Extensions;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 2 1 certId Lorg/bouncycastle/cert/ocsp/CertificateID;
MethodParameters:
Name Flags
certId
public org.bouncycastle.cert.ocsp.OCSPReqBuilder addRequest(org.bouncycastle.cert.ocsp.CertificateID, org.bouncycastle.asn1.x509.Extensions);
descriptor: (Lorg/bouncycastle/cert/ocsp/CertificateID;Lorg/bouncycastle/asn1/x509/Extensions;)Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.list:Ljava/util/List;
new org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject
dup
aload 0
aload 1
aload 2
invokespecial org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject.<init>:(Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;Lorg/bouncycastle/cert/ocsp/CertificateID;Lorg/bouncycastle/asn1/x509/Extensions;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 2 1 certId Lorg/bouncycastle/cert/ocsp/CertificateID;
0 2 2 singleRequestExtensions Lorg/bouncycastle/asn1/x509/Extensions;
MethodParameters:
Name Flags
certId
singleRequestExtensions
public org.bouncycastle.cert.ocsp.OCSPReqBuilder setRequestorName(org.bouncycastle.asn1.x500.X500Name);
descriptor: (Lorg/bouncycastle/asn1/x500/X500Name;)Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bouncycastle.asn1.x509.GeneralName
dup
iconst_4
aload 1
invokespecial org.bouncycastle.asn1.x509.GeneralName.<init>:(ILorg/bouncycastle/asn1/ASN1Encodable;)V
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestorName:Lorg/bouncycastle/asn1/x509/GeneralName;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 2 1 requestorName Lorg/bouncycastle/asn1/x500/X500Name;
MethodParameters:
Name Flags
requestorName
public org.bouncycastle.cert.ocsp.OCSPReqBuilder setRequestorName(org.bouncycastle.asn1.x509.GeneralName);
descriptor: (Lorg/bouncycastle/asn1/x509/GeneralName;)Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestorName:Lorg/bouncycastle/asn1/x509/GeneralName;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 2 1 requestorName Lorg/bouncycastle/asn1/x509/GeneralName;
MethodParameters:
Name Flags
requestorName
public org.bouncycastle.cert.ocsp.OCSPReqBuilder setRequestExtensions(org.bouncycastle.asn1.x509.Extensions);
descriptor: (Lorg/bouncycastle/asn1/x509/Extensions;)Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestExtensions:Lorg/bouncycastle/asn1/x509/Extensions;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 2 1 requestExtensions Lorg/bouncycastle/asn1/x509/Extensions;
MethodParameters:
Name Flags
requestExtensions
private org.bouncycastle.cert.ocsp.OCSPReq generateRequest(org.bouncycastle.operator.ContentSigner, org.bouncycastle.cert.X509CertificateHolder[]);
descriptor: (Lorg/bouncycastle/operator/ContentSigner;[Lorg/bouncycastle/cert/X509CertificateHolder;)Lorg/bouncycastle/cert/ocsp/OCSPReq;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.list:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 1: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 4
start local 4 2: goto 7
3: StackMap locals: java.util.Iterator org.bouncycastle.asn1.ASN1EncodableVector
StackMap stack:
aload 4
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject
invokevirtual org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject.toRequest:()Lorg/bouncycastle/asn1/ocsp/Request;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
4: goto 7
5: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 6: new org.bouncycastle.cert.ocsp.OCSPException
dup
ldc "exception creating Request"
aload 5
invokespecial org.bouncycastle.cert.ocsp.OCSPException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: new org.bouncycastle.asn1.ocsp.TBSRequest
dup
aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestorName:Lorg/bouncycastle/asn1/x509/GeneralName;
new org.bouncycastle.asn1.DERSequence
dup
aload 4
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestExtensions:Lorg/bouncycastle/asn1/x509/Extensions;
invokespecial org.bouncycastle.asn1.ocsp.TBSRequest.<init>:(Lorg/bouncycastle/asn1/x509/GeneralName;Lorg/bouncycastle/asn1/ASN1Sequence;Lorg/bouncycastle/asn1/x509/Extensions;)V
astore 5
start local 5 9: aconst_null
astore 6
start local 6 10: aload 1
ifnull 31
11: aload 0
getfield org.bouncycastle.cert.ocsp.OCSPReqBuilder.requestorName:Lorg/bouncycastle/asn1/x509/GeneralName;
ifnonnull 13
12: new org.bouncycastle.cert.ocsp.OCSPException
dup
ldc "requestorName must be specified if request is signed."
invokespecial org.bouncycastle.cert.ocsp.OCSPException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: org.bouncycastle.asn1.ocsp.TBSRequest org.bouncycastle.asn1.ocsp.Signature
StackMap stack:
aload 1
invokeinterface org.bouncycastle.operator.ContentSigner.getOutputStream:()Ljava/io/OutputStream;
astore 7
start local 7 14: aload 7
aload 5
ldc "DER"
invokevirtual org.bouncycastle.asn1.ocsp.TBSRequest.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
15: aload 7
invokevirtual java.io.OutputStream.close:()V
end local 7 16: goto 19
17: StackMap locals:
StackMap stack: java.lang.Exception
astore 7
start local 7 18: new org.bouncycastle.cert.ocsp.OCSPException
dup
new java.lang.StringBuilder
dup
ldc "exception processing TBSRequest: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
invokespecial org.bouncycastle.cert.ocsp.OCSPException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 19: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.DERBitString
dup
aload 1
invokeinterface org.bouncycastle.operator.ContentSigner.getSignature:()[B
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([B)V
astore 7
start local 7 20: aload 1
invokeinterface org.bouncycastle.operator.ContentSigner.getAlgorithmIdentifier:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
astore 8
start local 8 21: aload 2
ifnull 30
aload 2
arraylength
ifle 30
22: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 9
start local 9 23: iconst_0
istore 10
start local 10 24: goto 27
25: StackMap locals: org.bouncycastle.cert.ocsp.OCSPReqBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.cert.X509CertificateHolder[] java.util.Iterator org.bouncycastle.asn1.ASN1EncodableVector org.bouncycastle.asn1.ocsp.TBSRequest org.bouncycastle.asn1.ocsp.Signature org.bouncycastle.asn1.DERBitString org.bouncycastle.asn1.x509.AlgorithmIdentifier org.bouncycastle.asn1.ASN1EncodableVector int
StackMap stack:
aload 9
aload 2
iload 10
aaload
invokevirtual org.bouncycastle.cert.X509CertificateHolder.toASN1Structure:()Lorg/bouncycastle/asn1/x509/Certificate;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
26: iinc 10 1
StackMap locals:
StackMap stack:
27: iload 10
aload 2
arraylength
if_icmpne 25
end local 10 28: new org.bouncycastle.asn1.ocsp.Signature
dup
aload 8
aload 7
new org.bouncycastle.asn1.DERSequence
dup
aload 9
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
invokespecial org.bouncycastle.asn1.ocsp.Signature.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/DERBitString;Lorg/bouncycastle/asn1/ASN1Sequence;)V
astore 6
end local 9 29: goto 31
30: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.ocsp.Signature
dup
aload 8
aload 7
invokespecial org.bouncycastle.asn1.ocsp.Signature.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/DERBitString;)V
astore 6
end local 8 end local 7 31: StackMap locals:
StackMap stack:
new org.bouncycastle.cert.ocsp.OCSPReq
dup
new org.bouncycastle.asn1.ocsp.OCSPRequest
dup
aload 5
aload 6
invokespecial org.bouncycastle.asn1.ocsp.OCSPRequest.<init>:(Lorg/bouncycastle/asn1/ocsp/TBSRequest;Lorg/bouncycastle/asn1/ocsp/Signature;)V
invokespecial org.bouncycastle.cert.ocsp.OCSPReq.<init>:(Lorg/bouncycastle/asn1/ocsp/OCSPRequest;)V
areturn
end local 6 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 32 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 32 1 contentSigner Lorg/bouncycastle/operator/ContentSigner;
0 32 2 chain [Lorg/bouncycastle/cert/X509CertificateHolder;
1 32 3 it Ljava/util/Iterator;
2 32 4 requests Lorg/bouncycastle/asn1/ASN1EncodableVector;
6 7 5 e Ljava/lang/Exception;
9 32 5 tbsReq Lorg/bouncycastle/asn1/ocsp/TBSRequest;
10 32 6 signature Lorg/bouncycastle/asn1/ocsp/Signature;
14 16 7 sOut Ljava/io/OutputStream;
18 19 7 e Ljava/lang/Exception;
20 31 7 bitSig Lorg/bouncycastle/asn1/DERBitString;
21 31 8 sigAlgId Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
23 29 9 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
24 28 10 i I
Exception table:
from to target type
3 4 5 Class java.lang.Exception
13 16 17 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException
MethodParameters:
Name Flags
contentSigner
chain
public org.bouncycastle.cert.ocsp.OCSPReq build();
descriptor: ()Lorg/bouncycastle/cert/ocsp/OCSPReq;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
invokevirtual org.bouncycastle.cert.ocsp.OCSPReqBuilder.generateRequest:(Lorg/bouncycastle/operator/ContentSigner;[Lorg/bouncycastle/cert/X509CertificateHolder;)Lorg/bouncycastle/cert/ocsp/OCSPReq;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException
public org.bouncycastle.cert.ocsp.OCSPReq build(org.bouncycastle.operator.ContentSigner, org.bouncycastle.cert.X509CertificateHolder[]);
descriptor: (Lorg/bouncycastle/operator/ContentSigner;[Lorg/bouncycastle/cert/X509CertificateHolder;)Lorg/bouncycastle/cert/ocsp/OCSPReq;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "no signer specified"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.bouncycastle.cert.ocsp.OCSPReqBuilder.generateRequest:(Lorg/bouncycastle/operator/ContentSigner;[Lorg/bouncycastle/cert/X509CertificateHolder;)Lorg/bouncycastle/cert/ocsp/OCSPReq;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/ocsp/OCSPReqBuilder;
0 3 1 signer Lorg/bouncycastle/operator/ContentSigner;
0 3 2 chain [Lorg/bouncycastle/cert/X509CertificateHolder;
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException, java.lang.IllegalArgumentException
MethodParameters:
Name Flags
signer
chain
}
SourceFile: "OCSPReqBuilder.java"
NestMembers:
org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject
InnerClasses:
private RequestObject = org.bouncycastle.cert.ocsp.OCSPReqBuilder$RequestObject of org.bouncycastle.cert.ocsp.OCSPReqBuilder