public class org.bouncycastle.est.ESTService
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.est.ESTService
super_class: java.lang.Object
{
protected static final java.lang.String CACERTS;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/cacerts"
protected static final java.lang.String SIMPLE_ENROLL;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/simpleenroll"
protected static final java.lang.String SIMPLE_REENROLL;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/simplereenroll"
protected static final java.lang.String FULLCMC;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/fullcmc"
protected static final java.lang.String SERVERGEN;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/serverkeygen"
protected static final java.lang.String CSRATTRS;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "/csrattrs"
protected static final java.util.Set<java.lang.String> illegalParts;
descriptor: Ljava/util/Set;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final java.lang.String server;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.est.ESTClientProvider clientProvider;
descriptor: Lorg/bouncycastle/est/ESTClientProvider;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.regex.Pattern pathInvalid;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
1: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/cacerts"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
2: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/simpleenroll"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/simplereenroll"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/fullcmc"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/serverkeygen"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
ldc "/csrattrs"
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: ldc "^[0-9a-zA-Z_\\-.~!$&'()*+,;=]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.bouncycastle.est.ESTService.pathInvalid:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, java.lang.String, org.bouncycastle.est.ESTClientProvider);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/bouncycastle/est/ESTClientProvider;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual org.bouncycastle.est.ESTService.verifyServer:(Ljava/lang/String;)Ljava/lang/String;
astore 1
2: aload 2
ifnull 6
3: aload 0
aload 2
invokevirtual org.bouncycastle.est.ESTService.verifyLabel:(Ljava/lang/String;)Ljava/lang/String;
astore 2
4: aload 0
new java.lang.StringBuilder
dup
ldc "https://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/.well-known/est/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
5: goto 7
6: StackMap locals: org.bouncycastle.est.ESTService java.lang.String java.lang.String org.bouncycastle.est.ESTClientProvider
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "https://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/.well-known/est"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
7: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/est/ESTService;
0 9 1 serverAuthority Ljava/lang/String;
0 9 2 label Ljava/lang/String;
0 9 3 clientProvider Lorg/bouncycastle/est/ESTClientProvider;
MethodParameters:
Name Flags
serverAuthority
label
clientProvider
public static org.bouncycastle.cert.X509CertificateHolder[] storeToArray(org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder>);
descriptor: (Lorg/bouncycastle/util/Store;)[Lorg/bouncycastle/cert/X509CertificateHolder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokestatic org.bouncycastle.est.ESTService.storeToArray:(Lorg/bouncycastle/util/Store;Lorg/bouncycastle/util/Selector;)[Lorg/bouncycastle/cert/X509CertificateHolder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 store Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;
Signature: (Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;)[Lorg/bouncycastle/cert/X509CertificateHolder;
MethodParameters:
Name Flags
store
public static org.bouncycastle.cert.X509CertificateHolder[] storeToArray(org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder>, org.bouncycastle.util.Selector<org.bouncycastle.cert.X509CertificateHolder>);
descriptor: (Lorg/bouncycastle/util/Store;Lorg/bouncycastle/util/Selector;)[Lorg/bouncycastle/cert/X509CertificateHolder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.bouncycastle.util.Store.getMatches:(Lorg/bouncycastle/util/Selector;)Ljava/util/Collection;
astore 2
start local 2 1: aload 2
aload 2
invokeinterface java.util.Collection.size:()I
anewarray org.bouncycastle.cert.X509CertificateHolder
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.bouncycastle.cert.X509CertificateHolder[]
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 store Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;
0 2 1 selector Lorg/bouncycastle/util/Selector<Lorg/bouncycastle/cert/X509CertificateHolder;>;
1 2 2 c Ljava/util/Collection<Lorg/bouncycastle/cert/X509CertificateHolder;>;
Signature: (Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;Lorg/bouncycastle/util/Selector<Lorg/bouncycastle/cert/X509CertificateHolder;>;)[Lorg/bouncycastle/cert/X509CertificateHolder;
MethodParameters:
Name Flags
store
selector
public org.bouncycastle.est.CACertsResponse getCACerts();
descriptor: ()Lorg/bouncycastle/est/CACertsResponse;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=13, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: new java.net.URL
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/cacerts"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 4
5: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.makeClient:()Lorg/bouncycastle/est/ESTClient;
astore 5
start local 5 6: new org.bouncycastle.est.ESTRequestBuilder
dup
ldc "GET"
aload 4
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Ljava/lang/String;Ljava/net/URL;)V
aload 5
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withClient:(Lorg/bouncycastle/est/ESTClient;)Lorg/bouncycastle/est/ESTRequestBuilder;
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
astore 6
start local 6 7: aload 5
aload 6
invokeinterface org.bouncycastle.est.ESTClient.doRequest:(Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTResponse;
astore 1
8: aconst_null
astore 7
start local 7 9: aconst_null
astore 8
start local 8 10: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
sipush 200
if_icmpne 24
11: ldc "application/pkcs7-mime"
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getHeaders:()Lorg/bouncycastle/est/HttpUtil$Headers;
ldc "Content-Type"
invokevirtual org.bouncycastle.est.HttpUtil$Headers.getFirstValue:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
12: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getHeaders:()Lorg/bouncycastle/est/HttpUtil$Headers;
ldc "Content-Type"
invokevirtual org.bouncycastle.est.HttpUtil$Headers.getFirstValue:(Ljava/lang/String;)Ljava/lang/String;
ifnull 13
new java.lang.StringBuilder
dup
ldc " got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getHeaders:()Lorg/bouncycastle/est/HttpUtil$Headers;
ldc "Content-Type"
invokevirtual org.bouncycastle.est.HttpUtil$Headers.getFirstValue:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 14
StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse java.lang.Exception org.bouncycastle.est.CACertsResponse java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequest org.bouncycastle.util.Store org.bouncycastle.util.Store
StackMap stack:
13: ldc " but was not present."
StackMap locals:
StackMap stack: java.lang.String
14: astore 9
start local 9 15: new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Response : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "Expecting application/pkcs7-mime "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 9 16: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getContentLength:()Ljava/lang/Long;
ifnull 26
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getContentLength:()Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
lconst_0
lcmp
ifle 26
17: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:(Ljava/io/InputStream;)V
astore 9
start local 9 18: new org.bouncycastle.cmc.SimplePKIResponse
dup
aload 9
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1Sequence
invokestatic org.bouncycastle.asn1.cms.ContentInfo.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/ContentInfo;
invokespecial org.bouncycastle.cmc.SimplePKIResponse.<init>:(Lorg/bouncycastle/asn1/cms/ContentInfo;)V
astore 10
start local 10 19: aload 10
invokevirtual org.bouncycastle.cmc.SimplePKIResponse.getCertificates:()Lorg/bouncycastle/util/Store;
astore 7
20: aload 10
invokevirtual org.bouncycastle.cmc.SimplePKIResponse.getCRLs:()Lorg/bouncycastle/util/Store;
astore 8
end local 10 end local 9 21: goto 26
22: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
start local 9 23: new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Decoding CACerts: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 9
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 9 24: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
sipush 204
if_icmpeq 26
25: new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Get CACerts: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
26: StackMap locals:
StackMap stack:
new org.bouncycastle.est.CACertsResponse
dup
aload 7
aload 8
aload 6
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getSource:()Lorg/bouncycastle/est/Source;
aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.isTrusted:()Z
invokespecial org.bouncycastle.est.CACertsResponse.<init>:(Lorg/bouncycastle/util/Store;Lorg/bouncycastle/util/Store;Lorg/bouncycastle/est/ESTRequest;Lorg/bouncycastle/est/Source;Z)V
astore 3
end local 8 end local 7 end local 6 end local 5 27: goto 39
28: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse java.lang.Exception org.bouncycastle.est.CACertsResponse java.net.URL
StackMap stack: java.lang.Throwable
astore 5
start local 5 29: aload 5
instanceof org.bouncycastle.est.ESTException
ifeq 31
30: aload 5
checkcast org.bouncycastle.est.ESTException
athrow
31: StackMap locals: java.lang.Throwable
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 5
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aload 5
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 32: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse java.lang.Exception org.bouncycastle.est.CACertsResponse java.net.URL
StackMap stack: java.lang.Throwable
astore 11
33: aload 1
ifnull 38
34: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
35: goto 38
36: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse java.lang.Exception org.bouncycastle.est.CACertsResponse java.net.URL top top top top top top java.lang.Throwable
StackMap stack: java.lang.Exception
astore 12
start local 12 37: aload 12
astore 2
end local 12 38: StackMap locals:
StackMap stack:
aload 11
athrow
39: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse java.lang.Exception org.bouncycastle.est.CACertsResponse java.net.URL
StackMap stack:
aload 1
ifnull 44
40: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
41: goto 44
42: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 43: aload 12
astore 2
end local 12 44: StackMap locals:
StackMap stack:
aload 2
ifnull 48
45: aload 2
instanceof org.bouncycastle.est.ESTException
ifeq 47
46: aload 2
athrow
47: StackMap locals:
StackMap stack:
new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Get CACerts: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aconst_null
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
48: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lorg/bouncycastle/est/ESTService;
1 49 1 resp Lorg/bouncycastle/est/ESTResponse;
2 49 2 finalThrowable Ljava/lang/Exception;
3 49 3 caCertsResponse Lorg/bouncycastle/est/CACertsResponse;
4 49 4 url Ljava/net/URL;
6 27 5 client Lorg/bouncycastle/est/ESTClient;
7 27 6 req Lorg/bouncycastle/est/ESTRequest;
9 27 7 caCerts Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;
10 27 8 crlHolderStore Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CRLHolder;>;
15 16 9 j Ljava/lang/String;
18 21 9 ain Lorg/bouncycastle/asn1/ASN1InputStream;
19 21 10 spkr Lorg/bouncycastle/cmc/SimplePKIResponse;
23 24 9 ex Ljava/lang/Throwable;
29 32 5 t Ljava/lang/Throwable;
37 38 12 t Ljava/lang/Exception;
43 44 12 t Ljava/lang/Exception;
Exception table:
from to target type
16 21 22 Class java.lang.Throwable
4 27 28 Class java.lang.Throwable
4 32 32 any
34 35 36 Class java.lang.Exception
40 41 42 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
public org.bouncycastle.est.EnrollmentResponse simpleEnroll(org.bouncycastle.est.EnrollmentResponse);
descriptor: (Lorg/bouncycastle/est/EnrollmentResponse;)Lorg/bouncycastle/est/EnrollmentResponse;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.isTrusted:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "No trust anchors."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.makeClient:()Lorg/bouncycastle/est/ESTClient;
astore 3
start local 3 4: aload 3
new org.bouncycastle.est.ESTRequestBuilder
dup
aload 1
invokevirtual org.bouncycastle.est.EnrollmentResponse.getRequestToRetry:()Lorg/bouncycastle/est/ESTRequest;
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Lorg/bouncycastle/est/ESTRequest;)V
aload 3
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withClient:(Lorg/bouncycastle/est/ESTClient;)Lorg/bouncycastle/est/ESTRequestBuilder;
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
invokeinterface org.bouncycastle.est.ESTClient.doRequest:(Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTResponse;
astore 2
5: aload 0
aload 2
invokevirtual org.bouncycastle.est.ESTService.handleEnrollResponse:(Lorg/bouncycastle/est/ESTResponse;)Lorg/bouncycastle/est/EnrollmentResponse;
astore 5
6: aload 2
ifnull 8
7: aload 2
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
8: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.EnrollmentResponse org.bouncycastle.est.ESTResponse org.bouncycastle.est.ESTClient top org.bouncycastle.est.EnrollmentResponse
StackMap stack:
aload 5
areturn
end local 3 9: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.EnrollmentResponse org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 3
start local 3 10: aload 3
instanceof org.bouncycastle.est.ESTException
ifeq 12
11: aload 3
checkcast org.bouncycastle.est.ESTException
athrow
12: StackMap locals: java.lang.Throwable
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 3
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 13: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.EnrollmentResponse org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 4
14: aload 2
ifnull 16
15: aload 2
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
16: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.EnrollmentResponse org.bouncycastle.est.ESTResponse top java.lang.Throwable
StackMap stack:
aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/bouncycastle/est/ESTService;
0 17 1 priorResponse Lorg/bouncycastle/est/EnrollmentResponse;
3 17 2 resp Lorg/bouncycastle/est/ESTResponse;
4 9 3 client Lorg/bouncycastle/est/ESTClient;
10 13 3 t Ljava/lang/Throwable;
Exception table:
from to target type
3 6 9 Class java.lang.Throwable
3 6 13 any
9 13 13 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
priorResponse
public org.bouncycastle.est.EnrollmentResponse simpleEnroll(boolean, org.bouncycastle.pkcs.PKCS10CertificationRequest, org.bouncycastle.est.ESTAuth);
descriptor: (ZLorg/bouncycastle/pkcs/PKCS10CertificationRequest;Lorg/bouncycastle/est/ESTAuth;)Lorg/bouncycastle/est/EnrollmentResponse;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.isTrusted:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "No trust anchors."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 3: aload 0
aload 2
invokevirtual org.bouncycastle.pkcs.PKCS10CertificationRequest.getEncoded:()[B
invokevirtual org.bouncycastle.est.ESTService.annotateRequest:([B)Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
astore 5
start local 5 4: new java.net.URL
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
ifeq 5
ldc "/simplereenroll"
goto 6
StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse byte[]
StackMap stack: new 4 new 4 java.lang.StringBuilder
5: ldc "/simpleenroll"
StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse byte[]
StackMap stack: new 4 new 4 java.lang.StringBuilder java.lang.String
6: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 6
start local 6 7: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.makeClient:()Lorg/bouncycastle/est/ESTClient;
astore 7
start local 7 8: new org.bouncycastle.est.ESTRequestBuilder
dup
ldc "POST"
aload 6
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Ljava/lang/String;Ljava/net/URL;)V
aload 5
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withData:([B)Lorg/bouncycastle/est/ESTRequestBuilder;
aload 7
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withClient:(Lorg/bouncycastle/est/ESTClient;)Lorg/bouncycastle/est/ESTRequestBuilder;
astore 8
start local 8 9: aload 8
ldc "Content-Type"
ldc "application/pkcs10"
invokevirtual org.bouncycastle.est.ESTRequestBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
10: aload 8
ldc "Content-Length"
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 5
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.bouncycastle.est.ESTRequestBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
11: aload 8
ldc "Content-Transfer-Encoding"
ldc "base64"
invokevirtual org.bouncycastle.est.ESTRequestBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
12: aload 3
ifnull 14
13: aload 3
aload 8
invokeinterface org.bouncycastle.est.ESTAuth.applyAuth:(Lorg/bouncycastle/est/ESTRequestBuilder;)V
14: StackMap locals: java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequestBuilder
StackMap stack:
aload 7
aload 8
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
invokeinterface org.bouncycastle.est.ESTClient.doRequest:(Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTResponse;
astore 4
15: aload 0
aload 4
invokevirtual org.bouncycastle.est.ESTService.handleEnrollResponse:(Lorg/bouncycastle/est/ESTResponse;)Lorg/bouncycastle/est/EnrollmentResponse;
astore 10
16: aload 4
ifnull 18
17: aload 4
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
18: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse byte[] java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequestBuilder top org.bouncycastle.est.EnrollmentResponse
StackMap stack:
aload 10
areturn
end local 8 end local 7 end local 6 end local 5 19: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 5
start local 5 20: aload 5
instanceof org.bouncycastle.est.ESTException
ifeq 22
21: aload 5
checkcast org.bouncycastle.est.ESTException
athrow
22: StackMap locals: java.lang.Throwable
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 5
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aload 5
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 23: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 9
24: aload 4
ifnull 26
25: aload 4
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
26: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequest org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse top top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/bouncycastle/est/ESTService;
0 27 1 reenroll Z
0 27 2 certificationRequest Lorg/bouncycastle/pkcs/PKCS10CertificationRequest;
0 27 3 auth Lorg/bouncycastle/est/ESTAuth;
3 27 4 resp Lorg/bouncycastle/est/ESTResponse;
4 19 5 data [B
7 19 6 url Ljava/net/URL;
8 19 7 client Lorg/bouncycastle/est/ESTClient;
9 19 8 req Lorg/bouncycastle/est/ESTRequestBuilder;
20 23 5 t Ljava/lang/Throwable;
Exception table:
from to target type
3 16 19 Class java.lang.Throwable
3 16 23 any
19 23 23 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reenroll
certificationRequest
auth
public org.bouncycastle.est.EnrollmentResponse simpleEnrollPoP(boolean, org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder, org.bouncycastle.operator.ContentSigner, org.bouncycastle.est.ESTAuth);
descriptor: (ZLorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;Lorg/bouncycastle/operator/ContentSigner;Lorg/bouncycastle/est/ESTAuth;)Lorg/bouncycastle/est/EnrollmentResponse;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.isTrusted:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "No trust anchors."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 3: new java.net.URL
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
ifeq 4
ldc "/simplereenroll"
goto 5
StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: new 3 new 3 java.lang.StringBuilder
4: ldc "/simpleenroll"
StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: new 3 new 3 java.lang.StringBuilder java.lang.String
5: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 6
start local 6 6: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.makeClient:()Lorg/bouncycastle/est/ESTClient;
astore 7
start local 7 7: new org.bouncycastle.est.ESTRequestBuilder
dup
ldc "POST"
aload 6
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Ljava/lang/String;Ljava/net/URL;)V
aload 7
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withClient:(Lorg/bouncycastle/est/ESTClient;)Lorg/bouncycastle/est/ESTRequestBuilder;
new org.bouncycastle.est.ESTService$1
dup
aload 0
aload 2
aload 3
invokespecial org.bouncycastle.est.ESTService$1.<init>:(Lorg/bouncycastle/est/ESTService;Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;Lorg/bouncycastle/operator/ContentSigner;)V
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withConnectionListener:(Lorg/bouncycastle/est/ESTSourceConnectionListener;)Lorg/bouncycastle/est/ESTRequestBuilder;
astore 8
start local 8 8: aload 4
ifnull 10
9: aload 4
aload 8
invokeinterface org.bouncycastle.est.ESTAuth.applyAuth:(Lorg/bouncycastle/est/ESTRequestBuilder;)V
10: StackMap locals: java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequestBuilder
StackMap stack:
aload 7
aload 8
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
invokeinterface org.bouncycastle.est.ESTClient.doRequest:(Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTResponse;
astore 5
11: aload 0
aload 5
invokevirtual org.bouncycastle.est.ESTService.handleEnrollResponse:(Lorg/bouncycastle/est/ESTResponse;)Lorg/bouncycastle/est/EnrollmentResponse;
astore 10
12: aload 5
ifnull 14
13: aload 5
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
14: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequestBuilder top org.bouncycastle.est.EnrollmentResponse
StackMap stack:
aload 10
areturn
end local 8 end local 7 end local 6 15: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 6
start local 6 16: aload 6
instanceof org.bouncycastle.est.ESTException
ifeq 18
17: aload 6
checkcast org.bouncycastle.est.ESTException
athrow
18: StackMap locals: java.lang.Throwable
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 6
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aload 6
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 19: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse
StackMap stack: java.lang.Throwable
astore 9
20: aload 5
ifnull 22
21: aload 5
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
22: StackMap locals: org.bouncycastle.est.ESTService int org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder org.bouncycastle.operator.ContentSigner org.bouncycastle.est.ESTAuth org.bouncycastle.est.ESTResponse top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
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 23 0 this Lorg/bouncycastle/est/ESTService;
0 23 1 reEnroll Z
0 23 2 builder Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
0 23 3 contentSigner Lorg/bouncycastle/operator/ContentSigner;
0 23 4 auth Lorg/bouncycastle/est/ESTAuth;
3 23 5 resp Lorg/bouncycastle/est/ESTResponse;
6 15 6 url Ljava/net/URL;
7 15 7 client Lorg/bouncycastle/est/ESTClient;
8 15 8 reqBldr Lorg/bouncycastle/est/ESTRequestBuilder;
16 19 6 t Ljava/lang/Throwable;
Exception table:
from to target type
3 12 15 Class java.lang.Throwable
3 12 19 any
15 19 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reEnroll
builder final
contentSigner final
auth
protected org.bouncycastle.est.EnrollmentResponse handleEnrollResponse(org.bouncycastle.est.ESTResponse);
descriptor: (Lorg/bouncycastle/est/ESTResponse;)Lorg/bouncycastle/est/EnrollmentResponse;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getOriginalRequest:()Lorg/bouncycastle/est/ESTRequest;
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
sipush 202
if_icmpne 22
3: aload 1
ldc "Retry-After"
invokevirtual org.bouncycastle.est.ESTResponse.getHeader:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnonnull 6
5: new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Got Status 202 but not Retry-After header from: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.bouncycastle.est.ESTRequest.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.bouncycastle.est.ESTRequest org.bouncycastle.util.Store java.lang.String
StackMap stack:
ldc -1
lstore 5
start local 5 7: invokestatic java.lang.System.currentTimeMillis:()J
aload 4
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
ldc 1000
lmul
ladd
lstore 5
8: goto 21
9: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.ESTRequest org.bouncycastle.util.Store java.lang.String long
StackMap stack: java.lang.NumberFormatException
pop
10: new java.text.SimpleDateFormat
dup
11: ldc "EEE, dd MMM yyyy HH:mm:ss z"
getstatic java.util.Locale.US:Ljava/util/Locale;
12: invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 7
start local 7 13: aload 7
ldc "GMT"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
14: aload 7
aload 4
invokevirtual java.text.SimpleDateFormat.parse:(Ljava/lang/String;)Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
lstore 5
end local 7 15: goto 21
16: StackMap locals:
StackMap stack: java.lang.Exception
astore 7
start local 7 17: new org.bouncycastle.est.ESTException
dup
18: new java.lang.StringBuilder
dup
ldc "Unable to parse Retry-After header:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.bouncycastle.est.ESTRequest.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
19: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
20: invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 7 21: StackMap locals:
StackMap stack:
new org.bouncycastle.est.EnrollmentResponse
dup
aconst_null
lload 5
aload 2
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getSource:()Lorg/bouncycastle/est/Source;
invokespecial org.bouncycastle.est.EnrollmentResponse.<init>:(Lorg/bouncycastle/util/Store;JLorg/bouncycastle/est/ESTRequest;Lorg/bouncycastle/est/Source;)V
areturn
end local 5 end local 4 22: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
sipush 200
if_icmpne 31
23: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 24: aconst_null
astore 5
start local 5 25: new org.bouncycastle.cmc.SimplePKIResponse
dup
aload 4
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokestatic org.bouncycastle.asn1.cms.ContentInfo.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/ContentInfo;
invokespecial org.bouncycastle.cmc.SimplePKIResponse.<init>:(Lorg/bouncycastle/asn1/cms/ContentInfo;)V
astore 5
26: goto 29
27: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.ESTRequest org.bouncycastle.util.Store org.bouncycastle.asn1.ASN1InputStream org.bouncycastle.cmc.SimplePKIResponse
StackMap stack: org.bouncycastle.cmc.CMCException
astore 6
start local 6 28: new org.bouncycastle.est.ESTException
dup
aload 6
invokevirtual org.bouncycastle.cmc.CMCException.getMessage:()Ljava/lang/String;
aload 6
invokevirtual org.bouncycastle.cmc.CMCException.getCause:()Ljava/lang/Throwable;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 29: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.bouncycastle.cmc.SimplePKIResponse.getCertificates:()Lorg/bouncycastle/util/Store;
astore 3
30: new org.bouncycastle.est.EnrollmentResponse
dup
aload 3
ldc -1
aconst_null
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getSource:()Lorg/bouncycastle/est/Source;
invokespecial org.bouncycastle.est.EnrollmentResponse.<init>:(Lorg/bouncycastle/util/Store;JLorg/bouncycastle/est/ESTRequest;Lorg/bouncycastle/est/Source;)V
areturn
end local 5 end local 4 31: StackMap locals:
StackMap stack:
new org.bouncycastle.est.ESTException
dup
32: new java.lang.StringBuilder
dup
ldc "Simple Enroll: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.bouncycastle.est.ESTRequest.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
33: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
34: invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/bouncycastle/est/ESTService;
0 35 1 resp Lorg/bouncycastle/est/ESTResponse;
1 35 2 req Lorg/bouncycastle/est/ESTRequest;
2 35 3 enrolled Lorg/bouncycastle/util/Store<Lorg/bouncycastle/cert/X509CertificateHolder;>;
4 22 4 rt Ljava/lang/String;
7 22 5 notBefore J
13 15 7 dateFormat Ljava/text/SimpleDateFormat;
17 21 7 ex Ljava/lang/Exception;
24 31 4 ain Lorg/bouncycastle/asn1/ASN1InputStream;
25 31 5 spkr Lorg/bouncycastle/cmc/SimplePKIResponse;
28 29 6 e Lorg/bouncycastle/cmc/CMCException;
Exception table:
from to target type
7 8 9 Class java.lang.NumberFormatException
10 15 16 Class java.lang.Exception
25 26 27 Class org.bouncycastle.cmc.CMCException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resp
public org.bouncycastle.est.CSRRequestResponse getCSRAttributes();
descriptor: ()Lorg/bouncycastle/est/CSRRequestResponse;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.isTrusted:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "No trust anchors."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aconst_null
astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: aconst_null
astore 4
start local 4 6: new java.net.URL
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.bouncycastle.est.ESTService.server:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/csrattrs"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 4
7: aload 0
getfield org.bouncycastle.est.ESTService.clientProvider:Lorg/bouncycastle/est/ESTClientProvider;
invokeinterface org.bouncycastle.est.ESTClientProvider.makeClient:()Lorg/bouncycastle/est/ESTClient;
astore 5
start local 5 8: new org.bouncycastle.est.ESTRequestBuilder
dup
ldc "GET"
aload 4
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Ljava/lang/String;Ljava/net/URL;)V
aload 5
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withClient:(Lorg/bouncycastle/est/ESTClient;)Lorg/bouncycastle/est/ESTRequestBuilder;
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
astore 6
start local 6 9: aload 5
aload 6
invokeinterface org.bouncycastle.est.ESTClient.doRequest:(Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTResponse;
astore 1
10: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
lookupswitch { // 3
200: 11
204: 18
404: 20
default: 22
}
11: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.CSRAttributesResponse java.lang.Exception java.net.URL org.bouncycastle.est.ESTClient org.bouncycastle.est.ESTRequest
StackMap stack:
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getContentLength:()Ljava/lang/Long;
ifnull 37
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getContentLength:()Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
lconst_0
lcmp
ifle 37
12: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:(Ljava/io/InputStream;)V
astore 7
start local 7 13: aload 7
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1Sequence
astore 8
start local 8 14: new org.bouncycastle.est.CSRAttributesResponse
dup
aload 8
invokestatic org.bouncycastle.asn1.est.CsrAttrs.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/est/CsrAttrs;
invokespecial org.bouncycastle.est.CSRAttributesResponse.<init>:(Lorg/bouncycastle/asn1/est/CsrAttrs;)V
astore 2
end local 8 end local 7 15: goto 37
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
start local 7 17: new org.bouncycastle.est.ESTException
dup
new java.lang.StringBuilder
dup
ldc "Decoding CACerts: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 7 18: StackMap locals:
StackMap stack:
aconst_null
astore 2
19: goto 37
20: StackMap locals:
StackMap stack:
aconst_null
astore 2
21: goto 37
22: StackMap locals:
StackMap stack:
new org.bouncycastle.est.ESTException
dup
23: new java.lang.StringBuilder
dup
ldc "CSR Attribute request: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual org.bouncycastle.est.ESTRequest.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
24: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getInputStream:()Ljava/io/InputStream;
25: invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
end local 6 end local 5 26: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.CSRAttributesResponse java.lang.Exception java.net.URL
StackMap stack: java.lang.Throwable
astore 5
start local 5 27: aload 5
instanceof org.bouncycastle.est.ESTException
ifeq 29
28: aload 5
checkcast org.bouncycastle.est.ESTException
athrow
29: StackMap locals: java.lang.Throwable
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 5
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
aload 5
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 30: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.CSRAttributesResponse java.lang.Exception java.net.URL
StackMap stack: java.lang.Throwable
astore 9
31: aload 1
ifnull 36
32: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
33: goto 36
34: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.CSRAttributesResponse java.lang.Exception java.net.URL top top top top java.lang.Throwable
StackMap stack: java.lang.Exception
astore 10
start local 10 35: aload 10
astore 3
end local 10 36: StackMap locals:
StackMap stack:
aload 9
athrow
37: StackMap locals: org.bouncycastle.est.ESTService org.bouncycastle.est.ESTResponse org.bouncycastle.est.CSRAttributesResponse java.lang.Exception java.net.URL
StackMap stack:
aload 1
ifnull 42
38: aload 1
invokevirtual org.bouncycastle.est.ESTResponse.close:()V
39: goto 42
40: StackMap locals:
StackMap stack: java.lang.Exception
astore 10
start local 10 41: aload 10
astore 3
end local 10 42: StackMap locals:
StackMap stack:
aload 3
ifnull 46
43: aload 3
instanceof org.bouncycastle.est.ESTException
ifeq 45
44: aload 3
checkcast org.bouncycastle.est.ESTException
athrow
45: StackMap locals:
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 3
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getStatusCode:()I
aconst_null
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;ILjava/io/InputStream;)V
athrow
46: StackMap locals:
StackMap stack:
new org.bouncycastle.est.CSRRequestResponse
dup
aload 2
aload 1
invokevirtual org.bouncycastle.est.ESTResponse.getSource:()Lorg/bouncycastle/est/Source;
invokespecial org.bouncycastle.est.CSRRequestResponse.<init>:(Lorg/bouncycastle/est/CSRAttributesResponse;Lorg/bouncycastle/est/Source;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lorg/bouncycastle/est/ESTService;
3 47 1 resp Lorg/bouncycastle/est/ESTResponse;
4 47 2 response Lorg/bouncycastle/est/CSRAttributesResponse;
5 47 3 finalThrowable Ljava/lang/Exception;
6 47 4 url Ljava/net/URL;
8 26 5 client Lorg/bouncycastle/est/ESTClient;
9 26 6 req Lorg/bouncycastle/est/ESTRequest;
13 15 7 ain Lorg/bouncycastle/asn1/ASN1InputStream;
14 15 8 seq Lorg/bouncycastle/asn1/ASN1Sequence;
17 18 7 ex Ljava/lang/Throwable;
27 30 5 t Ljava/lang/Throwable;
35 36 10 ex Ljava/lang/Exception;
41 42 10 ex Ljava/lang/Exception;
Exception table:
from to target type
11 15 16 Class java.lang.Throwable
6 26 26 Class java.lang.Throwable
6 30 30 any
32 33 34 Class java.lang.Exception
38 39 40 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.est.ESTException
private java.lang.String annotateRequest(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 3
start local 3 2: new java.io.PrintWriter
dup
aload 3
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 4
start local 4 3: StackMap locals: int java.io.StringWriter java.io.PrintWriter
StackMap stack:
iload 2
bipush 48
iadd
aload 1
arraylength
if_icmpge 7
4: aload 4
aload 1
iload 2
bipush 48
invokestatic org.bouncycastle.util.encoders.Base64.toBase64String:([BII)Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
5: iinc 2 48
6: goto 9
7: StackMap locals:
StackMap stack:
aload 4
aload 1
iload 2
aload 1
arraylength
iload 2
isub
invokestatic org.bouncycastle.util.encoders.Base64.toBase64String:([BII)Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
8: aload 1
arraylength
istore 2
9: StackMap locals:
StackMap stack:
aload 4
bipush 10
invokevirtual java.io.PrintWriter.print:(C)V
10: iload 2
aload 1
arraylength
11: if_icmplt 3
12: aload 4
invokevirtual java.io.PrintWriter.flush:()V
13: aload 3
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bouncycastle/est/ESTService;
0 14 1 data [B
1 14 2 i I
2 14 3 sw Ljava/io/StringWriter;
3 14 4 pw Ljava/io/PrintWriter;
MethodParameters:
Name Flags
data
private java.lang.String verifyLabel(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: goto 2
1: StackMap locals:
StackMap stack:
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
aload 1
invokevirtual java.lang.String.length:()I
ifgt 1
3: goto 5
4: StackMap locals:
StackMap stack:
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
5: StackMap locals:
StackMap stack:
aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
aload 1
invokevirtual java.lang.String.length:()I
ifgt 4
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
ifne 8
7: new java.lang.IllegalArgumentException
dup
ldc "Label set but after trimming '/' is not zero length string."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.est.ESTService.pathInvalid:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 10
9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Server path "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " contains invalid characters"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.est.ESTService.illegalParts:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 12
11: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Label "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is a reserved path segment."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/est/ESTService;
0 13 1 label Ljava/lang/String;
MethodParameters:
Name Flags
label
private java.lang.String verifyServer(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: goto 2
1: StackMap locals:
StackMap stack:
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
aload 1
invokevirtual java.lang.String.length:()I
ifgt 1
3: StackMap locals:
StackMap stack:
aload 1
ldc "://"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 5
4: new java.lang.IllegalArgumentException
dup
ldc "Server contains scheme, must only be <dnsname/ipaddress>:port, https:// will be added arbitrarily."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
new java.net.URL
dup
new java.lang.StringBuilder
dup
ldc "https://"
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.net.URL.<init>:(Ljava/lang/String;)V
astore 2
start local 2 6: aload 2
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifeq 7
aload 2
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: StackMap locals: java.net.URL
StackMap stack:
aload 1
8: areturn
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Server contains path, must only be <dnsname/ipaddress>:port, a path of '/.well-known/est/<label>' will be added arbitrarily."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 10: StackMap locals: org.bouncycastle.est.ESTService java.lang.String
StackMap stack: java.lang.Exception
astore 2
start local 2 11: aload 2
instanceof java.lang.IllegalArgumentException
ifeq 13
12: aload 2
checkcast java.lang.IllegalArgumentException
athrow
13: StackMap locals: java.lang.Exception
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Scheme and host is invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bouncycastle/est/ESTService;
0 14 1 server Ljava/lang/String;
6 10 2 u Ljava/net/URL;
11 14 2 ex Ljava/lang/Exception;
Exception table:
from to target type
0 8 10 Class java.lang.Exception
9 10 10 Class java.lang.Exception
MethodParameters:
Name Flags
server
}
SourceFile: "ESTService.java"
NestMembers:
org.bouncycastle.est.ESTService$1
InnerClasses:
org.bouncycastle.est.ESTService$1
Headers = org.bouncycastle.est.HttpUtil$Headers of org.bouncycastle.est.HttpUtil