public final class sun.security.ec.ECKeyFactory extends java.security.KeyFactorySpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.ECKeyFactory
super_class: java.security.KeyFactorySpi
{
private static java.security.KeyFactory instance;
descriptor: Ljava/security/KeyFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.security.KeyFactory getInstance();
descriptor: ()Ljava/security/KeyFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.security.ec.ECKeyFactory.instance:Ljava/security/KeyFactory;
ifnonnull 7
1: ldc "EC"
ldc "SunEC"
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyFactory;
putstatic sun.security.ec.ECKeyFactory.instance:Ljava/security/KeyFactory;
2: goto 7
StackMap locals:
StackMap stack: java.security.NoSuchProviderException
3: astore 0
start local 0 4: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 5: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 0
start local 0 6: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 7: StackMap locals:
StackMap stack:
getstatic sun.security.ec.ECKeyFactory.instance:Ljava/security/KeyFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
4 5 0 e Ljava/security/NoSuchProviderException;
6 7 0 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
1 2 3 Class java.security.NoSuchProviderException
1 2 5 Class java.security.NoSuchAlgorithmException
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.security.KeyFactorySpi.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ec/ECKeyFactory;
public static java.security.interfaces.ECKey toECKey(java.security.Key);
descriptor: (Ljava/security/Key;)Ljava/security/interfaces/ECKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.security.interfaces.ECKey
ifeq 4
1: aload 0
checkcast java.security.interfaces.ECKey
astore 1
start local 1 2: aload 1
invokestatic sun.security.ec.ECKeyFactory.checkKey:(Ljava/security/interfaces/ECKey;)V
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
invokestatic sun.security.ec.ECKeyFactory.getInstance:()Ljava/security/KeyFactory;
aload 0
invokevirtual java.security.KeyFactory.translateKey:(Ljava/security/Key;)Ljava/security/Key;
checkcast java.security.interfaces.ECKey
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 key Ljava/security/Key;
2 4 1 ecKey Ljava/security/interfaces/ECKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private static void checkKey(java.security.interfaces.ECKey);
descriptor: (Ljava/security/interfaces/ECKey;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.security.interfaces.ECPublicKey
ifeq 3
1: aload 0
instanceof sun.security.ec.ECPublicKeyImpl
ifeq 7
2: return
3: StackMap locals:
StackMap stack:
aload 0
instanceof java.security.interfaces.ECPrivateKey
ifeq 6
4: aload 0
instanceof sun.security.ec.ECPrivateKeyImpl
ifeq 7
5: return
6: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Neither a public nor a private key"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
checkcast java.security.Key
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 1
start local 1 8: aload 1
ldc "EC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Not an EC key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 key Ljava/security/interfaces/ECKey;
8 11 1 keyAlg Ljava/lang/String;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.Key engineTranslateKey(java.security.Key);
descriptor: (Ljava/security/Key;)Ljava/security/Key;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "EC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Not an EC key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
instanceof java.security.PublicKey
ifeq 7
6: aload 0
aload 1
checkcast java.security.PublicKey
invokevirtual sun.security.ec.ECKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
areturn
7: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.PrivateKey
ifeq 9
8: aload 0
aload 1
checkcast java.security.PrivateKey
invokevirtual sun.security.ec.ECKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
areturn
9: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Neither a public nor a private key"
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 10 0 this Lsun/security/ec/ECKeyFactory;
0 10 1 key Ljava/security/Key;
3 10 2 keyAlg Ljava/lang/String;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.ec.ECKeyFactory.implGeneratePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
1: areturn
2: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 2
start local 2 3: aload 2
athrow
end local 2 4: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 5: new java.security.spec.InvalidKeySpecException
dup
aload 2
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ec/ECKeyFactory;
0 6 1 keySpec Ljava/security/spec/KeySpec;
3 4 2 e Ljava/security/spec/InvalidKeySpecException;
5 6 2 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
0 1 2 Class java.security.spec.InvalidKeySpecException
0 1 4 Class java.security.GeneralSecurityException
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.ec.ECKeyFactory.implGeneratePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
1: areturn
2: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 2
start local 2 3: aload 2
athrow
end local 2 4: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 5: new java.security.spec.InvalidKeySpecException
dup
aload 2
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ec/ECKeyFactory;
0 6 1 keySpec Ljava/security/spec/KeySpec;
3 4 2 e Ljava/security/spec/InvalidKeySpecException;
5 6 2 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
0 1 2 Class java.security.spec.InvalidKeySpecException
0 1 4 Class java.security.GeneralSecurityException
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PublicKey implTranslatePublicKey(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.ECPublicKey
ifeq 8
1: aload 1
instanceof sun.security.ec.ECPublicKeyImpl
ifeq 3
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.interfaces.ECPublicKey
astore 2
start local 2 4: new sun.security.ec.ECPublicKeyImpl
dup
5: aload 2
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
6: aload 2
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
7: invokespecial sun.security.ec.ECPublicKeyImpl.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
areturn
end local 2 8: StackMap locals:
StackMap stack:
ldc "X.509"
aload 1
invokeinterface java.security.PublicKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
9: aload 1
invokeinterface java.security.PublicKey.getEncoded:()[B
astore 2
start local 2 10: new sun.security.ec.ECPublicKeyImpl
dup
aload 2
invokespecial sun.security.ec.ECPublicKeyImpl.<init>:([B)V
areturn
end local 2 11: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Public keys must be instance of ECPublicKey or have X.509 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/ec/ECKeyFactory;
0 12 1 key Ljava/security/PublicKey;
4 8 2 ecKey Ljava/security/interfaces/ECPublicKey;
10 11 2 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private java.security.PrivateKey implTranslatePrivateKey(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.ECPrivateKey
ifeq 8
1: aload 1
instanceof sun.security.ec.ECPrivateKeyImpl
ifeq 3
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.interfaces.ECPrivateKey
astore 2
start local 2 4: new sun.security.ec.ECPrivateKeyImpl
dup
5: aload 2
invokeinterface java.security.interfaces.ECPrivateKey.getS:()Ljava/math/BigInteger;
6: aload 2
invokeinterface java.security.interfaces.ECPrivateKey.getParams:()Ljava/security/spec/ECParameterSpec;
7: invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
areturn
end local 2 8: StackMap locals:
StackMap stack:
ldc "PKCS#8"
aload 1
invokeinterface java.security.PrivateKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
9: new sun.security.ec.ECPrivateKeyImpl
dup
aload 1
invokeinterface java.security.PrivateKey.getEncoded:()[B
invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:([B)V
areturn
10: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Private keys must be instance of ECPrivateKey or have PKCS#8 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ec/ECKeyFactory;
0 11 1 key Ljava/security/PrivateKey;
4 8 2 ecKey Ljava/security/interfaces/ECPrivateKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private java.security.PublicKey implGeneratePublic(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.spec.X509EncodedKeySpec
ifeq 3
1: aload 1
checkcast java.security.spec.X509EncodedKeySpec
astore 2
start local 2 2: new sun.security.ec.ECPublicKeyImpl
dup
aload 2
invokevirtual java.security.spec.X509EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.ECPublicKeyImpl.<init>:([B)V
areturn
end local 2 3: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.ECPublicKeySpec
ifeq 9
4: aload 1
checkcast java.security.spec.ECPublicKeySpec
astore 2
start local 2 5: new sun.security.ec.ECPublicKeyImpl
dup
6: aload 2
invokevirtual java.security.spec.ECPublicKeySpec.getW:()Ljava/security/spec/ECPoint;
7: aload 2
invokevirtual java.security.spec.ECPublicKeySpec.getParams:()Ljava/security/spec/ECParameterSpec;
8: invokespecial sun.security.ec.ECPublicKeyImpl.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
areturn
end local 2 9: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPublicKeySpec and X509EncodedKeySpec supported for EC public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/ec/ECKeyFactory;
0 10 1 keySpec Ljava/security/spec/KeySpec;
2 3 2 x509Spec Ljava/security/spec/X509EncodedKeySpec;
5 9 2 ecSpec Ljava/security/spec/ECPublicKeySpec;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
keySpec
private java.security.PrivateKey implGeneratePrivate(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.spec.PKCS8EncodedKeySpec
ifeq 3
1: aload 1
checkcast java.security.spec.PKCS8EncodedKeySpec
astore 2
start local 2 2: new sun.security.ec.ECPrivateKeyImpl
dup
aload 2
invokevirtual java.security.spec.PKCS8EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:([B)V
areturn
end local 2 3: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.ECPrivateKeySpec
ifeq 6
4: aload 1
checkcast java.security.spec.ECPrivateKeySpec
astore 2
start local 2 5: new sun.security.ec.ECPrivateKeyImpl
dup
aload 2
invokevirtual java.security.spec.ECPrivateKeySpec.getS:()Ljava/math/BigInteger;
aload 2
invokevirtual java.security.spec.ECPrivateKeySpec.getParams:()Ljava/security/spec/ECParameterSpec;
invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
areturn
end local 2 6: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPrivateKeySpec and PKCS8EncodedKeySpec supported for EC private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ec/ECKeyFactory;
0 7 1 keySpec Ljava/security/spec/KeySpec;
2 3 2 pkcsSpec Ljava/security/spec/PKCS8EncodedKeySpec;
5 6 2 ecSpec Ljava/security/spec/ECPrivateKeySpec;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
keySpec
protected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key, java.lang.Class<T>);
descriptor: (Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual sun.security.ec.ECKeyFactory.engineTranslateKey:(Ljava/security/Key;)Ljava/security/Key;
astore 1
1: goto 4
StackMap locals:
StackMap stack: java.security.InvalidKeyException
2: astore 3
start local 3 3: new java.security.spec.InvalidKeySpecException
dup
aload 3
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 4: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.ECPublicKey
ifeq 16
5: aload 1
checkcast java.security.interfaces.ECPublicKey
astore 3
start local 3 6: aload 2
ldc Ljava/security/spec/ECPublicKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 11
7: aload 2
new java.security.spec.ECPublicKeySpec
dup
8: aload 3
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
9: aload 3
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
invokespecial java.security.spec.ECPublicKeySpec.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
10: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
11: StackMap locals: java.security.interfaces.ECPublicKey
StackMap stack:
aload 2
ldc Ljava/security/spec/X509EncodedKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
12: aload 2
new java.security.spec.X509EncodedKeySpec
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
13: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
14: ldc "KeySpec must be ECPublicKeySpec or X509EncodedKeySpec for EC public keys"
15: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 3 16: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.ECPrivateKey
ifeq 28
17: aload 2
ldc Ljava/security/spec/PKCS8EncodedKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 19
18: aload 2
new java.security.spec.PKCS8EncodedKeySpec
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
19: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/security/spec/ECPrivateKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 25
20: aload 1
checkcast java.security.interfaces.ECPrivateKey
astore 3
start local 3 21: aload 2
new java.security.spec.ECPrivateKeySpec
dup
22: aload 3
invokeinterface java.security.interfaces.ECPrivateKey.getS:()Ljava/math/BigInteger;
23: aload 3
invokeinterface java.security.interfaces.ECPrivateKey.getParams:()Ljava/security/spec/ECParameterSpec;
invokespecial java.security.spec.ECPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
24: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 3 25: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
26: ldc "KeySpec must be ECPrivateKeySpec or PKCS8EncodedKeySpec for EC private keys"
27: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Neither public nor private key"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/security/ec/ECKeyFactory;
0 29 1 key Ljava/security/Key;
0 29 2 keySpec Ljava/lang/Class<TT;>;
3 4 3 e Ljava/security/InvalidKeyException;
6 16 3 ecKey Ljava/security/interfaces/ECPublicKey;
21 25 3 ecKey Ljava/security/interfaces/ECPrivateKey;
Exception table:
from to target type
0 1 2 Class java.security.InvalidKeyException
Exceptions:
throws java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Ljava/security/Key;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
key
keySpec
}
SourceFile: "ECKeyFactory.java"