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
ldc "SunJCE"
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyFactory;
2: astore 3
start local 3 3: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 4
start local 4 4: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 2
end local 4 end local 3 5: goto 29
StackMap locals: byte[] java.lang.String java.security.PublicKey
StackMap stack: java.security.NoSuchAlgorithmException
6: pop
7: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
8: astore 3
start local 3 9: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
10: astore 4
start local 4 11: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 2
end local 4 end local 3 12: goto 29
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
13: pop
14: 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
15: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 19: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
20: astore 4
start local 4 21: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
22: aload 4
athrow
end local 4 end local 3 23: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 24: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
25: astore 4
start local 4 26: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
27: aload 4
athrow
end local 4 end local 3 28: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
pop
29: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 encodedKey [B
0 30 1 encodedKeyAlgorithm Ljava/lang/String;
1 30 2 key Ljava/security/PublicKey;
3 5 3 keyFactory Ljava/security/KeyFactory;
4 5 4 keySpec Ljava/security/spec/X509EncodedKeySpec;
9 12 3 keyFactory Ljava/security/KeyFactory;
11 12 4 keySpec Ljava/security/spec/X509EncodedKeySpec;
19 23 3 ikse2 Ljava/security/spec/InvalidKeySpecException;
21 23 4 ike Ljava/security/InvalidKeyException;
24 28 3 ikse Ljava/security/spec/InvalidKeySpecException;
26 28 4 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
1 5 6 Class java.security.NoSuchAlgorithmException
7 12 13 Class java.security.NoSuchAlgorithmException
7 12 18 Class java.security.spec.InvalidKeySpecException
1 5 23 Class java.security.spec.InvalidKeySpecException
1 5 28 Class java.security.NoSuchProviderException
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
ldc "SunJCE"
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyFactory;
2: astore 3
start local 3 3: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 4
start local 4 4: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
5: areturn
end local 4 end local 3 6: StackMap locals: byte[] java.lang.String java.security.PrivateKey
StackMap stack: java.security.NoSuchAlgorithmException
pop
7: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
8: astore 3
start local 3 9: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
10: astore 4
start local 4 11: aload 3
aload 4
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 2
end local 4 end local 3 12: goto 29
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
13: pop
14: 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
15: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 19: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
20: astore 4
start local 4 21: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
22: aload 4
athrow
end local 4 end local 3 23: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 24: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
25: astore 4
start local 4 26: aload 4
aload 3
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
27: aload 4
athrow
end local 4 end local 3 28: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
pop
29: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 encodedKey [B
0 30 1 encodedKeyAlgorithm Ljava/lang/String;
1 30 2 key Ljava/security/PrivateKey;
3 6 3 keyFactory Ljava/security/KeyFactory;
4 6 4 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
9 12 3 keyFactory Ljava/security/KeyFactory;
11 12 4 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
19 23 3 ikse2 Ljava/security/spec/InvalidKeySpecException;
21 23 4 ike Ljava/security/InvalidKeyException;
24 28 3 ikse Ljava/security/spec/InvalidKeySpecException;
26 28 4 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
1 5 6 Class java.security.NoSuchAlgorithmException
7 12 13 Class java.security.NoSuchAlgorithmException
7 12 18 Class java.security.spec.InvalidKeySpecException
1 5 23 Class java.security.spec.InvalidKeySpecException
1 5 28 Class java.security.NoSuchProviderException
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"