final class sun.security.pkcs11.ConstructKeys
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.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 Lsun/security/pkcs11/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=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
1: astore 2
start local 2 2: new java.security.spec.X509EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 3
start local 3 3: aload 2
aload 3
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
4: areturn
end local 3 end local 2 5: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 2
start local 2 6: 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
7: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
9: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 2
start local 2 11: new java.security.InvalidKeyException
dup
ldc "Cannot construct public key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 encodedKey [B
0 12 1 encodedKeyAlgorithm Ljava/lang/String;
2 5 2 keyFactory Ljava/security/KeyFactory;
3 5 3 keySpec Ljava/security/spec/X509EncodedKeySpec;
6 10 2 nsae Ljava/security/NoSuchAlgorithmException;
11 12 2 ike Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
0 4 5 Class java.security.NoSuchAlgorithmException
0 4 10 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=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
1: astore 2
start local 2 2: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 0
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 3
start local 3 3: aload 2
aload 3
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
4: areturn
end local 3 end local 2 5: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 2
start local 2 6: 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
7: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "algorithm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
9: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 2
start local 2 11: new java.security.InvalidKeyException
dup
ldc "Cannot construct private key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 encodedKey [B
0 12 1 encodedKeyAlgorithm Ljava/lang/String;
2 5 2 keyFactory Ljava/security/KeyFactory;
3 5 3 keySpec Ljava/security/spec/PKCS8EncodedKeySpec;
6 10 2 nsae Ljava/security/NoSuchAlgorithmException;
11 12 2 ike Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
0 4 5 Class java.security.NoSuchAlgorithmException
0 4 10 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=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
tableswitch { // 1 - 3
1: 3
2: 2
3: 1
default: 4
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.security.pkcs11.ConstructKeys.constructSecretKey:([BLjava/lang/String;)Ljavax/crypto/SecretKey;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.security.pkcs11.ConstructKeys.constructPrivateKey:([BLjava/lang/String;)Ljava/security/PrivateKey;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.security.pkcs11.ConstructKeys.constructPublicKey:([BLjava/lang/String;)Ljava/security/PublicKey;
areturn
4: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Unknown keytype "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 encoding [B
0 5 1 keyAlgorithm Ljava/lang/String;
0 5 2 keyType I
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
encoding
keyAlgorithm
keyType
}
SourceFile: "P11RSACipher.java"