class org.bouncycastle.est.ESTService$1 implements org.bouncycastle.est.ESTSourceConnectionListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.est.ESTService$1
super_class: java.lang.Object
{
final org.bouncycastle.est.ESTService this$0;
descriptor: Lorg/bouncycastle/est/ESTService;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder val$builder;
descriptor: Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bouncycastle.operator.ContentSigner val$contentSigner;
descriptor: Lorg/bouncycastle/operator/ContentSigner;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.bouncycastle.est.ESTService, org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder, org.bouncycastle.operator.ContentSigner);
descriptor: (Lorg/bouncycastle/est/ESTService;Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;Lorg/bouncycastle/operator/ContentSigner;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 0: aload 0
aload 1
putfield org.bouncycastle.est.ESTService$1.this$0:Lorg/bouncycastle/est/ESTService;
aload 0
aload 2
putfield org.bouncycastle.est.ESTService$1.val$builder:Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
aload 0
aload 3
putfield org.bouncycastle.est.ESTService$1.val$contentSigner:Lorg/bouncycastle/operator/ContentSigner;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/est/ESTService$1;
MethodParameters:
Name Flags
this$0 final
val$builder final
val$contentSigner final
public org.bouncycastle.est.ESTRequest onConnection(org.bouncycastle.est.Source, org.bouncycastle.est.ESTRequest);
descriptor: (Lorg/bouncycastle/est/Source;Lorg/bouncycastle/est/ESTRequest;)Lorg/bouncycastle/est/ESTRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof org.bouncycastle.est.TLSUniqueProvider
ifeq 12
aload 1
checkcast org.bouncycastle.est.TLSUniqueProvider
invokeinterface org.bouncycastle.est.TLSUniqueProvider.isTLSUniqueAvailable:()Z
ifeq 12
1: new org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder
dup
aload 0
getfield org.bouncycastle.est.ESTService$1.val$builder:Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
invokespecial org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder.<init>:(Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;)V
astore 3
start local 3 2: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 4
start local 4 3: aload 1
checkcast org.bouncycastle.est.TLSUniqueProvider
invokeinterface org.bouncycastle.est.TLSUniqueProvider.getTLSUnique:()[B
astore 5
start local 5 4: aload 3
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.pkcs_9_at_challengePassword:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.asn1.DERPrintableString
dup
aload 5
invokestatic org.bouncycastle.util.encoders.Base64.toBase64String:([B)Ljava/lang/String;
invokespecial org.bouncycastle.asn1.DERPrintableString.<init>:(Ljava/lang/String;)V
invokevirtual org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder.setAttribute:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/asn1/ASN1Encodable;)Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
pop
5: aload 4
aload 0
getfield org.bouncycastle.est.ESTService$1.this$0:Lorg/bouncycastle/est/ESTService;
aload 3
aload 0
getfield org.bouncycastle.est.ESTService$1.val$contentSigner:Lorg/bouncycastle/operator/ContentSigner;
invokevirtual org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder.build:(Lorg/bouncycastle/operator/ContentSigner;)Lorg/bouncycastle/pkcs/PKCS10CertificationRequest;
invokevirtual org.bouncycastle.pkcs.PKCS10CertificationRequest.getEncoded:()[B
invokevirtual org.bouncycastle.est.ESTService.annotateRequest:([B)Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
invokevirtual java.io.ByteArrayOutputStream.write:([B)V
6: aload 4
invokevirtual java.io.ByteArrayOutputStream.flush:()V
7: new org.bouncycastle.est.ESTRequestBuilder
dup
aload 2
invokespecial org.bouncycastle.est.ESTRequestBuilder.<init>:(Lorg/bouncycastle/est/ESTRequest;)V
aload 4
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokevirtual org.bouncycastle.est.ESTRequestBuilder.withData:([B)Lorg/bouncycastle/est/ESTRequestBuilder;
astore 6
start local 6 8: aload 6
ldc "Content-Type"
ldc "application/pkcs10"
invokevirtual org.bouncycastle.est.ESTRequestBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
9: aload 6
ldc "Content-Transfer-Encoding"
ldc "base64"
invokevirtual org.bouncycastle.est.ESTRequestBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
10: aload 6
ldc "Content-Length"
aload 4
invokevirtual java.io.ByteArrayOutputStream.size:()I
i2l
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual org.bouncycastle.est.ESTRequestBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)Lorg/bouncycastle/est/ESTRequestBuilder;
pop
11: aload 6
invokevirtual org.bouncycastle.est.ESTRequestBuilder.build:()Lorg/bouncycastle/est/ESTRequest;
areturn
end local 6 end local 5 end local 4 end local 3 12: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Source does not supply TLS unique."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/est/ESTService$1;
0 13 1 source Lorg/bouncycastle/est/Source;
0 13 2 request Lorg/bouncycastle/est/ESTRequest;
2 12 3 localBuilder Lorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;
3 12 4 bos Ljava/io/ByteArrayOutputStream;
4 12 5 tlsUnique [B
8 12 6 reqBuilder Lorg/bouncycastle/est/ESTRequestBuilder;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
source
request
}
SourceFile: "ESTService.java"
EnclosingMethod: org.bouncycastle.est.ESTService.simpleEnrollPoP:(ZLorg/bouncycastle/pkcs/PKCS10CertificationRequestBuilder;Lorg/bouncycastle/operator/ContentSigner;Lorg/bouncycastle/est/ESTAuth;)Lorg/bouncycastle/est/EnrollmentResponse;
NestHost: org.bouncycastle.est.ESTService
InnerClasses:
org.bouncycastle.est.ESTService$1