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[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljava/security/PublicKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
2: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
3: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
4: astore 3
start local 3 5: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 4
start local 4 6: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 2
end local 4 end local 3 7: goto 30
StackMap locals: byte[] java.lang.String java.security.PublicKey
StackMap stack: java.security.NoSuchAlgorithmException
8: pop
9: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
10: astore 3
start local 3 11: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
12: astore 4
start local 4 13: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 2
end local 4 end local 3 14: goto 30
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
15: pop
16: 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
17: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 21: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
22: astore 4
start local 4 23: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
24: aload 4
athrow
end local 4 end local 3 25: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 26: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
27: astore 4
start local 4 28: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
29: aload 4
athrow
end local 4 end local 3 30: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 encodedKey [B
0 31 1 encodedKeyAlgorithm Ljava/lang/String;
1 31 2 key Ljava/security/PublicKey;
5 7 3 keyFactory Ljava/security/KeyFactory;
6 7 4 keySpec Ljava/security/spec/X509EncodedKeySpec;
11 14 3 keyFactory Ljava/security/KeyFactory;
13 14 4 keySpec Ljava/security/spec/X509EncodedKeySpec;
21 25 3 ikse2 Ljava/security/spec/InvalidKeySpecException;
23 25 4 ike Ljava/security/InvalidKeyException;
26 30 3 ikse Ljava/security/spec/InvalidKeySpecException;
28 30 4 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
1 7 8 Class java.security.NoSuchAlgorithmException
9 14 15 Class java.security.NoSuchAlgorithmException
9 14 20 Class java.security.spec.InvalidKeySpecException
1 7 25 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
encodedKeyAlgorithm
private static final java.security.PrivateKey constructPrivateKey(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljava/security/PrivateKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
2: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
3: invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
4: astore 3
start local 3 5: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 4
start local 4 6: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
7: areturn
end local 4 end local 3 8: StackMap locals: byte[] java.lang.String java.security.PrivateKey
StackMap stack: java.security.NoSuchAlgorithmException
pop
9: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
10: astore 3
start local 3 11: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
12: astore 4
start local 4 13: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 2
end local 4 end local 3 14: goto 30
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
15: pop
16: 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
17: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 21: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
22: astore 4
start local 4 23: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
24: aload 4
athrow
end local 4 end local 3 25: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 26: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
27: astore 4
start local 4 28: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
29: aload 4
athrow
end local 4 end local 3 30: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 encodedKey [B
0 31 1 encodedKeyAlgorithm Ljava/lang/String;
1 31 2 key Ljava/security/PrivateKey;
5 8 3 keyFactory Ljava/security/KeyFactory;
6 8 4 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
11 14 3 keyFactory Ljava/security/KeyFactory;
13 14 4 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
21 25 3 ikse2 Ljava/security/spec/InvalidKeySpecException;
23 25 4 ike Ljava/security/InvalidKeyException;
26 30 3 ikse Ljava/security/spec/InvalidKeySpecException;
28 30 4 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
1 7 8 Class java.security.NoSuchAlgorithmException
9 14 15 Class java.security.NoSuchAlgorithmException
9 14 20 Class java.security.spec.InvalidKeySpecException
1 7 25 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encodedKey
encodedKeyAlgorithm
private static final javax.crypto.SecretKey constructSecretKey(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)Ljavax/crypto/SecretKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new javax.crypto.spec.SecretKeySpec
dup
aload 0
aload 1
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 encodedKey [B
0 1 1 encodedKeyAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
encodedKey
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=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: iload 2
tableswitch { // 1 - 3
1: 10
2: 6
3: 2
default: 13
}
2: StackMap locals: java.security.Key
StackMap stack:
aload 0
3: aload 1
4: invokestatic com.sun.crypto.provider.ConstructKeys.constructSecretKey:([BLjava/lang/String;)Ljavax/crypto/SecretKey;
astore 3
5: goto 13
6: StackMap locals:
StackMap stack:
aload 0
7: aload 1
8: invokestatic com.sun.crypto.provider.ConstructKeys.constructPrivateKey:([BLjava/lang/String;)Ljava/security/PrivateKey;
astore 3
9: goto 13
10: StackMap locals:
StackMap stack:
aload 0
11: aload 1
12: invokestatic com.sun.crypto.provider.ConstructKeys.constructPublicKey:([BLjava/lang/String;)Ljava/security/PublicKey;
astore 3
13: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 encoding [B
0 14 1 keyAlgorithm Ljava/lang/String;
0 14 2 keyType I
1 14 3 result Ljava/security/Key;
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encoding
keyAlgorithm
keyType
}
SourceFile: "ConstructKeys.java"