public class org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder
super_class: java.lang.Object
{
private org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter keyConverter;
descriptor: Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.cert.jcajce.JcaX509CertificateConverter certConverter;
descriptor: Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
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 org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
dup
invokespecial org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter.<init>:()V
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
2: aload 0
new org.bouncycastle.cert.jcajce.JcaX509CertificateConverter
dup
invokespecial org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.<init>:()V
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
public org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder setProvider(java.security.Provider);
descriptor: (Ljava/security/Provider;)Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
aload 1
invokevirtual org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter.setProvider:(Ljava/security/Provider;)Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
1: aload 0
aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
aload 1
invokevirtual org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.setProvider:(Ljava/security/Provider;)Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
0 3 1 provider Ljava/security/Provider;
MethodParameters:
Name Flags
provider
public org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder setProvider(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
aload 1
invokevirtual org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter.setProvider:(Ljava/lang/String;)Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
1: aload 0
aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
aload 1
invokevirtual org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.setProvider:(Ljava/lang/String;)Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
putfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
0 3 1 providerName Ljava/lang/String;
MethodParameters:
Name Flags
providerName
public org.bouncycastle.pkix.jcajce.JcaPKIXIdentity build(java.io.File, java.io.File);
descriptor: (Ljava/io/File;Ljava/io/File;)Lorg/bouncycastle/pkix/jcajce/JcaPKIXIdentity;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.checkFile:(Ljava/io/File;)V
1: aload 0
aload 2
invokevirtual org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.checkFile:(Ljava/io/File;)V
2: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3
start local 3 3: new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 4
start local 4 4: aload 0
aload 3
aload 4
invokevirtual org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.build:(Ljava/io/InputStream;Ljava/io/InputStream;)Lorg/bouncycastle/pkix/jcajce/JcaPKIXIdentity;
astore 5
start local 5 5: aload 3
invokevirtual java.io.FileInputStream.close:()V
6: aload 4
invokevirtual java.io.FileInputStream.close:()V
7: aload 5
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 8 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
0 8 1 keyFile Ljava/io/File;
0 8 2 certificateFile Ljava/io/File;
3 8 3 keyStream Ljava/io/FileInputStream;
4 8 4 certificateStream Ljava/io/FileInputStream;
5 8 5 rv Lorg/bouncycastle/pkix/jcajce/JcaPKIXIdentity;
Exceptions:
throws java.io.IOException, java.security.cert.CertificateException
MethodParameters:
Name Flags
keyFile
certificateFile
public org.bouncycastle.pkix.jcajce.JcaPKIXIdentity build(java.io.InputStream, java.io.InputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/InputStream;)Lorg/bouncycastle/pkix/jcajce/JcaPKIXIdentity;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new org.bouncycastle.openssl.PEMParser
dup
new java.io.InputStreamReader
dup
aload 1
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial org.bouncycastle.openssl.PEMParser.<init>:(Ljava/io/Reader;)V
astore 3
start local 3 1: aload 3
invokevirtual org.bouncycastle.openssl.PEMParser.readObject:()Ljava/lang/Object;
astore 5
start local 5 2: aload 5
instanceof org.bouncycastle.openssl.PEMKeyPair
ifeq 6
3: aload 5
checkcast org.bouncycastle.openssl.PEMKeyPair
astore 6
start local 6 4: aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
aload 6
invokevirtual org.bouncycastle.openssl.PEMKeyPair.getPrivateKeyInfo:()Lorg/bouncycastle/asn1/pkcs/PrivateKeyInfo;
invokevirtual org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter.getPrivateKey:(Lorg/bouncycastle/asn1/pkcs/PrivateKeyInfo;)Ljava/security/PrivateKey;
astore 4
end local 6 start local 4 5: goto 10
end local 4 6: StackMap locals: org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder java.io.InputStream java.io.InputStream org.bouncycastle.openssl.PEMParser top java.lang.Object
StackMap stack:
aload 5
instanceof org.bouncycastle.asn1.pkcs.PrivateKeyInfo
ifeq 9
7: aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.keyConverter:Lorg/bouncycastle/openssl/jcajce/JcaPEMKeyConverter;
aload 5
checkcast org.bouncycastle.asn1.pkcs.PrivateKeyInfo
invokevirtual org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter.getPrivateKey:(Lorg/bouncycastle/asn1/pkcs/PrivateKeyInfo;)Ljava/security/PrivateKey;
astore 4
start local 4 8: goto 10
end local 4 9: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "unrecognised private key file"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
start local 4 10: StackMap locals: org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder java.io.InputStream java.io.InputStream org.bouncycastle.openssl.PEMParser java.security.PrivateKey java.lang.Object
StackMap stack:
new org.bouncycastle.openssl.PEMParser
dup
new java.io.InputStreamReader
dup
aload 2
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial org.bouncycastle.openssl.PEMParser.<init>:(Ljava/io/Reader;)V
astore 6
start local 6 11: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 12: goto 14
start local 8 13: StackMap locals: org.bouncycastle.openssl.PEMParser java.util.List java.lang.Object
StackMap stack:
aload 7
aload 0
getfield org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder.certConverter:Lorg/bouncycastle/cert/jcajce/JcaX509CertificateConverter;
aload 8
checkcast org.bouncycastle.cert.X509CertificateHolder
invokevirtual org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.getCertificate:(Lorg/bouncycastle/cert/X509CertificateHolder;)Ljava/security/cert/X509Certificate;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 14: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.bouncycastle.openssl.PEMParser.readObject:()Ljava/lang/Object;
dup
astore 8
start local 8 15: ifnonnull 13
16: new org.bouncycastle.pkix.jcajce.JcaPKIXIdentity
dup
aload 4
aload 7
aload 7
invokeinterface java.util.List.size:()I
anewarray java.security.cert.X509Certificate
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.security.cert.X509Certificate[]
invokespecial org.bouncycastle.pkix.jcajce.JcaPKIXIdentity.<init>:(Ljava/security/PrivateKey;[Ljava/security/cert/X509Certificate;)V
areturn
end local 8 end local 7 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 17 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
0 17 1 keyStream Ljava/io/InputStream;
0 17 2 certificateStream Ljava/io/InputStream;
1 17 3 keyParser Lorg/bouncycastle/openssl/PEMParser;
5 6 4 privKey Ljava/security/PrivateKey;
8 9 4 privKey Ljava/security/PrivateKey;
10 17 4 privKey Ljava/security/PrivateKey;
2 17 5 keyObj Ljava/lang/Object;
4 5 6 kp Lorg/bouncycastle/openssl/PEMKeyPair;
11 17 6 certParser Lorg/bouncycastle/openssl/PEMParser;
12 17 7 certs Ljava/util/List;
13 14 8 certObj Ljava/lang/Object;
15 17 8 certObj Ljava/lang/Object;
Exceptions:
throws java.io.IOException, java.security.cert.CertificateException
MethodParameters:
Name Flags
keyStream
certificateStream
private void checkFile(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.canRead:()Z
ifeq 4
1: aload 1
invokevirtual java.io.File.exists:()Z
ifeq 3
2: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to open file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " for reading."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "Unable to open "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": it does not exist."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/openssl/jcajce/JcaPKIXIdentityBuilder;
0 5 1 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
}
SourceFile: "JcaPKIXIdentityBuilder.java"