final class com.sun.crypto.provider.ConstructKeys
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.ConstructKeys
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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 Lcom/sun/crypto/provider/ConstructKeys;
private static final java.security.PublicKey constructPublicKey(byte[], int, int, java.lang.String);
descriptor: ([BIILjava/lang/String;)Ljava/security/PublicKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: iload 1
ifne 3
aload 0
arraylength
iload 2
if_icmpne 3
2: aload 0
goto 4
StackMap locals: java.security.PublicKey
StackMap stack:
3: aload 0
iload 1
iload 1
iload 2
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
4: StackMap locals:
StackMap stack: byte[]
astore 5
start local 5 5: new java.security.spec.X509EncodedKeySpec
dup
aload 5
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 6
start local 6 6: aload 3
7: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
8: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
9: astore 7
start local 7 10: aload 7
aload 6
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 4
end local 7 11: goto 26
StackMap locals: byte[] int int java.lang.String java.security.PublicKey byte[] java.security.spec.X509EncodedKeySpec
StackMap stack: java.security.NoSuchAlgorithmException
12: pop
13: aload 3
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
14: astore 7
start local 7 15: aload 7
aload 6
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 4
end local 7 16: goto 26
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
17: pop
18: new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "No installed providers can create keys for the "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 7
start local 7 23: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
aload 7
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 24: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 7
start local 7 25: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
aload 7
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 26: StackMap locals:
StackMap stack:
aload 4
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 27 0 encodedKey [B
0 27 1 ofs I
0 27 2 len I
0 27 3 encodedKeyAlgorithm Ljava/lang/String;
1 27 4 key Ljava/security/PublicKey;
5 27 5 keyBytes [B
6 27 6 keySpec Ljava/security/spec/X509EncodedKeySpec;
10 11 7 keyFactory Ljava/security/KeyFactory;
15 16 7 keyFactory Ljava/security/KeyFactory;
23 24 7 ikse2 Ljava/security/spec/InvalidKeySpecException;
25 26 7 ikse Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
6 11 12 Class java.security.NoSuchAlgorithmException
13 16 17 Class java.security.NoSuchAlgorithmException
13 16 22 Class java.security.spec.InvalidKeySpecException
6 11 24 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
ofs
len
encodedKeyAlgorithm
private static final java.security.PrivateKey constructPrivateKey(byte[], int, int, java.lang.String);
descriptor: ([BIILjava/lang/String;)Ljava/security/PrivateKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: iload 1
ifne 3
aload 0
arraylength
iload 2
if_icmpne 3
2: aload 0
goto 4
StackMap locals: java.security.PrivateKey
StackMap stack:
3: aload 0
iload 1
iload 1
iload 2
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
4: StackMap locals:
StackMap stack: byte[]
astore 5
start local 5 5: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 5
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 6
start local 6 6: aload 3
7: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
8: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
9: astore 7
start local 7 10: aload 7
aload 6
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 9
11: invokestatic jdk.internal.access.SharedSecrets.getJavaSecuritySpecAccess:()Ljdk/internal/access/JavaSecuritySpecAccess;
aload 6
invokeinterface jdk.internal.access.JavaSecuritySpecAccess.clearEncodedKeySpec:(Ljava/security/spec/EncodedKeySpec;)V
12: aload 5
aload 0
if_acmpeq 14
13: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
14: StackMap locals: byte[] int int java.lang.String java.security.PrivateKey byte[] java.security.spec.PKCS8EncodedKeySpec java.security.KeyFactory top java.security.PrivateKey
StackMap stack:
aload 9
areturn
end local 7 15: StackMap locals: byte[] int int java.lang.String java.security.PrivateKey byte[] java.security.spec.PKCS8EncodedKeySpec
StackMap stack: java.security.NoSuchAlgorithmException
pop
16: aload 3
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
17: astore 7
start local 7 18: aload 7
aload 6
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 4
end local 7 19: goto 27
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
20: pop
21: new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "No installed providers can create keys for the "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 7
start local 7 26: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
aload 7
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 27: StackMap locals:
StackMap stack:
invokestatic jdk.internal.access.SharedSecrets.getJavaSecuritySpecAccess:()Ljdk/internal/access/JavaSecuritySpecAccess;
aload 6
invokeinterface jdk.internal.access.JavaSecuritySpecAccess.clearEncodedKeySpec:(Ljava/security/spec/EncodedKeySpec;)V
28: aload 5
aload 0
if_acmpeq 37
29: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
goto 37
30: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 7
start local 7 31: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
aload 7
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 32: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
33: invokestatic jdk.internal.access.SharedSecrets.getJavaSecuritySpecAccess:()Ljdk/internal/access/JavaSecuritySpecAccess;
aload 6
invokeinterface jdk.internal.access.JavaSecuritySpecAccess.clearEncodedKeySpec:(Ljava/security/spec/EncodedKeySpec;)V
34: aload 5
aload 0
if_acmpeq 36
35: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
36: StackMap locals: byte[] int int java.lang.String java.security.PrivateKey byte[] java.security.spec.PKCS8EncodedKeySpec top java.lang.Throwable
StackMap stack:
aload 8
athrow
37: StackMap locals: byte[] int int java.lang.String java.security.PrivateKey byte[] java.security.spec.PKCS8EncodedKeySpec
StackMap stack:
aload 4
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 38 0 encodedKey [B
0 38 1 ofs I
0 38 2 len I
0 38 3 encodedKeyAlgorithm Ljava/lang/String;
1 38 4 key Ljava/security/PrivateKey;
5 38 5 keyBytes [B
6 38 6 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
10 15 7 keyFactory Ljava/security/KeyFactory;
18 19 7 keyFactory Ljava/security/KeyFactory;
26 27 7 ikse2 Ljava/security/spec/InvalidKeySpecException;
31 32 7 ikse Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
6 11 15 Class java.security.NoSuchAlgorithmException
16 19 20 Class java.security.NoSuchAlgorithmException
16 19 25 Class java.security.spec.InvalidKeySpecException
6 11 30 Class java.security.spec.InvalidKeySpecException
6 11 32 any
15 27 32 any
30 32 32 any
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
ofs
len
encodedKeyAlgorithm
private static final javax.crypto.SecretKey constructSecretKey(byte[], int, int, java.lang.String);
descriptor: ([BIILjava/lang/String;)Ljavax/crypto/SecretKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new javax.crypto.spec.SecretKeySpec
dup
aload 0
iload 1
iload 2
aload 3
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BIILjava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 encodedKey [B
0 1 1 ofs I
0 1 2 len I
0 1 3 encodedKeyAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
encodedKey
ofs
len
encodedKeyAlgorithm
static final java.security.Key constructKey(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
aload 0
arraylength
aload 1
1: iload 2
2: invokestatic com.sun.crypto.provider.ConstructKeys.constructKey:([BIILjava/lang/String;I)Ljava/security/Key;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 encoding [B
0 3 1 keyAlgorithm Ljava/lang/String;
0 3 2 keyType I
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encoding
keyAlgorithm
keyType
static final java.security.Key constructKey(byte[], int, int, java.lang.String, int);
descriptor: ([BIILjava/lang/String;I)Ljava/security/Key;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 4
tableswitch { // 1 - 3
1: 5
2: 3
3: 1
default: 7
}
1: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
aload 3
2: invokestatic com.sun.crypto.provider.ConstructKeys.constructSecretKey:([BIILjava/lang/String;)Ljavax/crypto/SecretKey;
goto 8
3: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
aload 3
4: invokestatic com.sun.crypto.provider.ConstructKeys.constructPrivateKey:([BIILjava/lang/String;)Ljava/security/PrivateKey;
goto 8
5: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
aload 3
6: invokestatic com.sun.crypto.provider.ConstructKeys.constructPublicKey:([BIILjava/lang/String;)Ljava/security/PublicKey;
goto 8
7: StackMap locals:
StackMap stack:
new java.security.NoSuchAlgorithmException
dup
ldc "Unsupported key type"
invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack: java.security.Key
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 encoding [B
0 9 1 ofs I
0 9 2 len I
0 9 3 keyAlgorithm Ljava/lang/String;
0 9 4 keyType I
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encoding
ofs
len
keyAlgorithm
keyType
}
SourceFile: "ConstructKeys.java"