public class io.vertx.core.net.impl.pkcs1.PrivateKeyParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.net.impl.pkcs1.PrivateKeyParser
super_class: java.lang.Object
{
private static final byte[] OID_RSA_PUBLIC_KEY;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] OID_EC_PUBLIC_KEY;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 9
newarray 8
dup
iconst_0
bipush 42
bastore
dup
iconst_1
bipush -122
bastore
dup
iconst_2
bipush 72
bastore
dup
iconst_3
bipush -122
bastore
dup
iconst_4
bipush -9
bastore
dup
iconst_5
bipush 13
bastore
dup
bipush 6
iconst_1
bastore
dup
bipush 7
1: iconst_1
bastore
dup
bipush 8
iconst_1
bastore
2: putstatic io.vertx.core.net.impl.pkcs1.PrivateKeyParser.OID_RSA_PUBLIC_KEY:[B
3: bipush 7
newarray 8
dup
iconst_0
bipush 42
bastore
dup
iconst_1
bipush -122
bastore
dup
iconst_2
bipush 72
bastore
dup
iconst_3
bipush -50
bastore
dup
iconst_4
bipush 61
bastore
dup
iconst_5
iconst_2
bastore
dup
bipush 6
iconst_1
bastore
putstatic io.vertx.core.net.impl.pkcs1.PrivateKeyParser.OID_EC_PUBLIC_KEY:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser;
public static java.lang.String getPKCS8EncodedKeyAlgorithm(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser
dup
aload 0
invokespecial io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.<init>:([B)V
astore 1
start local 1 1: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
astore 2
start local 2 2: aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getType:()I
bipush 16
if_icmpeq 4
3: new io.vertx.core.VertxException
dup
ldc "Invalid PKCS8 encoding: not a sequence"
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object
StackMap stack:
aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getParser:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$DerParser;
astore 1
5: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 3
start local 3 6: aload 3
invokevirtual java.math.BigInteger.intValue:()I
ifeq 8
7: new io.vertx.core.VertxException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported version, expected 0 but found "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.math.BigInteger.intValue:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: java.math.BigInteger
StackMap stack:
aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
astore 2
9: aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getType:()I
bipush 16
if_icmpeq 11
10: new io.vertx.core.VertxException
dup
ldc "Invalid PKCS8 encoding: could not read Algorithm Identifier"
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getParser:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$DerParser;
astore 1
12: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getObjectIdentifier:()[B
astore 4
start local 4 13: getstatic io.vertx.core.net.impl.pkcs1.PrivateKeyParser.OID_RSA_PUBLIC_KEY:[B
aload 4
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 15
14: ldc "RSA"
areturn
15: StackMap locals: byte[]
StackMap stack:
getstatic io.vertx.core.net.impl.pkcs1.PrivateKeyParser.OID_EC_PUBLIC_KEY:[B
aload 4
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 17
16: ldc "EC"
areturn
17: StackMap locals:
StackMap stack:
new io.vertx.core.VertxException
dup
ldc "Unsupported algorithm identifier"
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 encodedKey [B
1 18 1 parser Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$DerParser;
2 18 2 sequence Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
6 18 3 version Ljava/math/BigInteger;
13 18 4 algorithmIdentifier [B
MethodParameters:
Name Flags
encodedKey
public static java.security.spec.RSAPrivateCrtKeySpec getRSAKeySpec(byte[]);
descriptor: ([B)Ljava/security/spec/RSAPrivateCrtKeySpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=11, args_size=1
start local 0 0: new io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser
dup
aload 0
invokespecial io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.<init>:([B)V
astore 1
start local 1 1: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
astore 2
start local 2 2: aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getType:()I
bipush 16
if_icmpeq 4
3: new io.vertx.core.VertxException
dup
ldc "Invalid DER: not a sequence"
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object
StackMap stack:
aload 2
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getParser:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$DerParser;
astore 1
5: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
pop
6: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 3
start local 3 7: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 4
start local 4 8: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 5
start local 5 9: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 6
start local 6 10: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 7
start local 7 11: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 8
start local 8 12: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 9
start local 9 13: aload 1
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser.read:()Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
invokevirtual io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object.getInteger:()Ljava/math/BigInteger;
astore 10
start local 10 14: new java.security.spec.RSAPrivateCrtKeySpec
dup
15: aload 3
aload 4
aload 5
aload 6
aload 7
16: aload 8
aload 9
aload 10
17: invokespecial java.security.spec.RSAPrivateCrtKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
end local 10 end local 9 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 18 0 keyBytes [B
1 18 1 parser Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$DerParser;
2 18 2 sequence Lio/vertx/core/net/impl/pkcs1/PrivateKeyParser$Asn1Object;
7 18 3 modulus Ljava/math/BigInteger;
8 18 4 publicExp Ljava/math/BigInteger;
9 18 5 privateExp Ljava/math/BigInteger;
10 18 6 prime1 Ljava/math/BigInteger;
11 18 7 prime2 Ljava/math/BigInteger;
12 18 8 exp1 Ljava/math/BigInteger;
13 18 9 exp2 Ljava/math/BigInteger;
14 18 10 crtCoef Ljava/math/BigInteger;
Exceptions:
throws io.vertx.core.VertxException
MethodParameters:
Name Flags
keyBytes
}
SourceFile: "PrivateKeyParser.java"
NestMembers:
io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser
InnerClasses:
Asn1Object = io.vertx.core.net.impl.pkcs1.PrivateKeyParser$Asn1Object of io.vertx.core.net.impl.pkcs1.PrivateKeyParser
DerParser = io.vertx.core.net.impl.pkcs1.PrivateKeyParser$DerParser of io.vertx.core.net.impl.pkcs1.PrivateKeyParser