public class sun.security.pkcs.PKCS8Key implements java.security.PrivateKey
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.pkcs.PKCS8Key
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -3836890099307167124
protected sun.security.x509.AlgorithmId algid;
descriptor: Lsun/security/x509/AlgorithmId;
flags: (0x0004) ACC_PROTECTED
protected byte[] key;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected byte[] encodedKey;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
public static final java.math.BigInteger version;
descriptor: Ljava/math/BigInteger;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
putstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
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.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs/PKCS8Key;
private void <init>(sun.security.x509.AlgorithmId, byte[]);
descriptor: (Lsun/security/x509/AlgorithmId;[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
2: aload 0
aload 2
putfield sun.security.pkcs.PKCS8Key.key:[B
3: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.encode:()[B
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs/PKCS8Key;
0 5 1 algid Lsun/security/x509/AlgorithmId;
0 5 2 key [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
algid
key
public static sun.security.pkcs.PKCS8Key parse(sun.security.util.DerValue);
descriptor: (Lsun/security/util/DerValue;)Lsun/security/pkcs/PKCS8Key;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic sun.security.pkcs.PKCS8Key.parseKey:(Lsun/security/util/DerValue;)Ljava/security/PrivateKey;
astore 1
start local 1 1: aload 1
instanceof sun.security.pkcs.PKCS8Key
ifeq 3
2: aload 1
checkcast sun.security.pkcs.PKCS8Key
areturn
3: StackMap locals: java.security.PrivateKey
StackMap stack:
new java.io.IOException
dup
ldc "Provider did not return PKCS8Key"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 in Lsun/security/util/DerValue;
1 4 1 key Ljava/security/PrivateKey;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public static java.security.PrivateKey parseKey(sun.security.util.DerValue);
descriptor: (Lsun/security/util/DerValue;)Ljava/security/PrivateKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.security.util.DerValue.tag:B
bipush 48
if_icmpeq 2
1: new java.io.IOException
dup
ldc "corrupt private key"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getBigInteger:()Ljava/math/BigInteger;
astore 3
start local 3 3: getstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
aload 3
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 9
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "version mismatch: (supported: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: getstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
invokestatic sun.security.util.Debug.toHexString:(Ljava/math/BigInteger;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc ", parsed: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 3
invokestatic sun.security.util.Debug.toHexString:(Ljava/math/BigInteger;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: sun.security.util.DerValue top top java.math.BigInteger
StackMap stack:
aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
invokestatic sun.security.x509.AlgorithmId.parse:(Lsun/security/util/DerValue;)Lsun/security/x509/AlgorithmId;
astore 1
start local 1 10: aload 1
aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
invokestatic sun.security.pkcs.PKCS8Key.buildPKCS8Key:(Lsun/security/x509/AlgorithmId;[B)Ljava/security/PrivateKey;
astore 2
start local 2 11: goto 14
end local 2 StackMap locals: sun.security.util.DerValue sun.security.x509.AlgorithmId top java.math.BigInteger
StackMap stack: java.security.InvalidKeyException
12: pop
13: new java.io.IOException
dup
ldc "corrupt private key"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
start local 2 14: StackMap locals: sun.security.util.DerValue sun.security.x509.AlgorithmId java.security.PrivateKey java.math.BigInteger
StackMap stack:
aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 16
15: new java.io.IOException
dup
ldc "excess private key"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 in Lsun/security/util/DerValue;
10 17 1 algorithm Lsun/security/x509/AlgorithmId;
11 12 2 privKey Ljava/security/PrivateKey;
14 17 2 privKey Ljava/security/PrivateKey;
3 17 3 parsedVersion Ljava/math/BigInteger;
Exception table:
from to target type
10 11 12 Class java.security.InvalidKeyException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
protected void parseKeyBits();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.encode:()[B
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs/PKCS8Key;
Exceptions:
throws java.io.IOException, java.security.InvalidKeyException
static java.security.PrivateKey buildPKCS8Key(sun.security.x509.AlgorithmId, byte[]);
descriptor: (Lsun/security/x509/AlgorithmId;[B)Ljava/security/PrivateKey;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
aload 1
invokestatic sun.security.pkcs.PKCS8Key.encode:(Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;[B)V
2: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
3: astore 3
start local 3 4: aload 0
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
astore 4
start local 4 5: aload 4
aload 3
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
6: areturn
end local 4 7: StackMap locals: sun.security.x509.AlgorithmId byte[] sun.security.util.DerOutputStream java.security.spec.PKCS8EncodedKeySpec
StackMap stack: java.security.NoSuchAlgorithmException
pop
goto 9
8: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
pop
9: StackMap locals:
StackMap stack:
ldc ""
astore 4
start local 4 10: ldc "SUN"
invokestatic java.security.Security.getProvider:(Ljava/lang/String;)Ljava/security/Provider;
astore 5
start local 5 11: aload 5
ifnonnull 13
12: new java.lang.InstantiationException
dup
invokespecial java.lang.InstantiationException.<init>:()V
athrow
13: StackMap locals: java.lang.String java.security.Provider
StackMap stack:
aload 5
new java.lang.StringBuilder
dup
ldc "PrivateKey.PKCS#8."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: aload 0
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokevirtual java.security.Provider.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
16: aload 4
ifnonnull 18
17: new java.lang.InstantiationException
dup
invokespecial java.lang.InstantiationException.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 19: aload 4
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
20: goto 25
StackMap locals: sun.security.x509.AlgorithmId byte[] sun.security.util.DerOutputStream java.security.spec.PKCS8EncodedKeySpec java.lang.String java.security.Provider java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
21: pop
22: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 7
start local 7 23: aload 7
ifnull 25
24: aload 7
aload 4
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
end local 7 25: StackMap locals:
StackMap stack:
aload 6
ifnull 26
aload 6
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
goto 27
StackMap locals:
StackMap stack:
26: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
27: astore 7
start local 7 28: aload 7
instanceof sun.security.pkcs.PKCS8Key
ifeq 39
29: aload 7
checkcast sun.security.pkcs.PKCS8Key
astore 8
start local 8 30: aload 8
aload 0
putfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
31: aload 8
aload 1
putfield sun.security.pkcs.PKCS8Key.key:[B
32: aload 8
invokevirtual sun.security.pkcs.PKCS8Key.parseKeyBits:()V
33: aload 8
34: areturn
end local 8 end local 7 end local 6 end local 5 35: StackMap locals: sun.security.x509.AlgorithmId byte[] sun.security.util.DerOutputStream java.security.spec.PKCS8EncodedKeySpec java.lang.String
StackMap stack: java.lang.ClassNotFoundException
pop
goto 39
36: StackMap locals:
StackMap stack: java.lang.InstantiationException
pop
goto 39
37: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
pop
38: new java.io.IOException
dup
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " [internal error]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
new sun.security.pkcs.PKCS8Key
dup
invokespecial sun.security.pkcs.PKCS8Key.<init>:()V
astore 5
start local 5 40: aload 5
aload 0
putfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
41: aload 5
aload 1
putfield sun.security.pkcs.PKCS8Key.key:[B
42: aload 5
areturn
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 43 0 algid Lsun/security/x509/AlgorithmId;
0 43 1 key [B
1 43 2 pkcs8EncodedKeyStream Lsun/security/util/DerOutputStream;
4 43 3 pkcs8KeySpec Ljava/security/spec/PKCS8EncodedKeySpec;
5 7 4 keyFac Ljava/security/KeyFactory;
10 43 4 classname Ljava/lang/String;
11 35 5 sunProvider Ljava/security/Provider;
19 35 6 keyClass Ljava/lang/Class<*>;
23 25 7 cl Ljava/lang/ClassLoader;
28 35 7 inst Ljava/lang/Object;
30 35 8 result Lsun/security/pkcs/PKCS8Key;
40 43 5 result Lsun/security/pkcs/PKCS8Key;
Exception table:
from to target type
4 6 7 Class java.security.NoSuchAlgorithmException
4 6 8 Class java.security.spec.InvalidKeySpecException
19 20 21 Class java.lang.ClassNotFoundException
10 34 35 Class java.lang.ClassNotFoundException
10 34 36 Class java.lang.InstantiationException
10 34 37 Class java.lang.IllegalAccessException
Exceptions:
throws java.io.IOException, java.security.InvalidKeyException
MethodParameters:
Name Flags
algid
key
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs/PKCS8Key;
public sun.security.x509.AlgorithmId getAlgorithmId();
descriptor: ()Lsun/security/x509/AlgorithmId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs/PKCS8Key;
public final void encode(sun.security.util.DerOutputStream);
descriptor: (Lsun/security/util/DerOutputStream;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
aload 0
getfield sun.security.pkcs.PKCS8Key.key:[B
invokestatic sun.security.pkcs.PKCS8Key.encode:(Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;[B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs/PKCS8Key;
0 2 1 out Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public synchronized byte[] getEncoded();
descriptor: ()[B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.encode:()[B
astore 1
2: goto 4
StackMap locals: sun.security.pkcs.PKCS8Key byte[]
StackMap stack: java.security.InvalidKeyException
3: pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs/PKCS8Key;
1 5 1 result [B
Exception table:
from to target type
1 2 3 Class java.security.InvalidKeyException
public java.lang.String getFormat();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "PKCS#8"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs/PKCS8Key;
public byte[] encode();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
ifnonnull 9
1: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 1
start local 1 2: aload 0
aload 1
invokevirtual sun.security.pkcs.PKCS8Key.encode:(Lsun/security/util/DerOutputStream;)V
3: aload 0
aload 1
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.pkcs.PKCS8Key.encodedKey:[B
end local 1 4: goto 9
StackMap locals:
StackMap stack: java.io.IOException
5: astore 1
start local 1 6: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 1 9: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/pkcs/PKCS8Key;
2 4 1 out Lsun/security/util/DerOutputStream;
6 9 1 e Ljava/io/IOException;
Exception table:
from to target type
1 4 5 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
public void decode(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new sun.security.util.DerValue
dup
aload 1
invokespecial sun.security.util.DerValue.<init>:(Ljava/io/InputStream;)V
astore 2
start local 2 1: aload 2
getfield sun.security.util.DerValue.tag:B
bipush 48
if_icmpeq 3
2: new java.security.InvalidKeyException
dup
ldc "invalid key format"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: sun.security.util.DerValue
StackMap stack:
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getBigInteger:()Ljava/math/BigInteger;
astore 3
start local 3 4: aload 3
getstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 10
5: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "version mismatch: (supported: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: getstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
invokestatic sun.security.util.Debug.toHexString:(Ljava/math/BigInteger;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc ", parsed: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: aload 3
invokestatic sun.security.util.Debug.toHexString:(Ljava/math/BigInteger;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.math.BigInteger
StackMap stack:
aload 0
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
invokestatic sun.security.x509.AlgorithmId.parse:(Lsun/security/util/DerValue;)Lsun/security/x509/AlgorithmId;
putfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
11: aload 0
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
putfield sun.security.pkcs.PKCS8Key.key:[B
12: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.parseKeyBits:()V
13: aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
pop
end local 3 14: goto 19
end local 2 StackMap locals: sun.security.pkcs.PKCS8Key java.io.InputStream
StackMap stack: java.io.IOException
15: astore 3
start local 3 16: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
17: aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 3 start local 2 19: StackMap locals: sun.security.util.DerValue
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/pkcs/PKCS8Key;
0 20 1 in Ljava/io/InputStream;
1 15 2 val Lsun/security/util/DerValue;
19 20 2 val Lsun/security/util/DerValue;
4 14 3 version Ljava/math/BigInteger;
16 19 3 e Ljava/io/IOException;
Exception table:
from to target type
0 14 15 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
in
public void decode(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokevirtual sun.security.pkcs.PKCS8Key.decode:(Ljava/io/InputStream;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs/PKCS8Key;
0 2 1 encodedKey [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encodedKey
protected java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: new java.security.KeyRep
dup
getstatic java.security.KeyRep$Type.PRIVATE:Ljava/security/KeyRep$Type;
1: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getAlgorithm:()Ljava/lang/String;
2: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getFormat:()Ljava/lang/String;
3: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
4: invokespecial java.security.KeyRep.<init>:(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs/PKCS8Key;
Exceptions:
throws java.io.ObjectStreamException
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.pkcs.PKCS8Key.decode:(Ljava/io/InputStream;)V
1: goto 7
StackMap locals:
StackMap stack: java.security.InvalidKeyException
2: astore 2
start local 2 3: aload 2
invokevirtual java.security.InvalidKeyException.printStackTrace:()V
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "deserialized key is invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 2
invokevirtual java.security.InvalidKeyException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs/PKCS8Key;
0 8 1 stream Ljava/io/ObjectInputStream;
3 7 2 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 1 2 Class java.security.InvalidKeyException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
static void encode(sun.security.util.DerOutputStream, sun.security.x509.AlgorithmId, byte[]);
descriptor: (Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;[B)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 1: aload 3
getstatic sun.security.pkcs.PKCS8Key.version:Ljava/math/BigInteger;
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
2: aload 1
aload 3
invokevirtual sun.security.x509.AlgorithmId.encode:(Lsun/security/util/DerOutputStream;)V
3: aload 3
aload 2
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
4: aload 0
bipush 48
aload 3
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 out Lsun/security/util/DerOutputStream;
0 6 1 algid Lsun/security/x509/AlgorithmId;
0 6 2 key [B
1 6 3 tmp Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
algid
key
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.Key
ifeq 9
3: aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
ifnull 6
4: aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
astore 2
start local 2 5: goto 7
end local 2 6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
astore 2
start local 2 7: StackMap locals: byte[]
StackMap stack:
aload 1
checkcast java.security.Key
invokeinterface java.security.Key.getEncoded:()[B
astore 3
start local 3 8: aload 2
aload 3
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ireturn
end local 3 end local 2 9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/pkcs/PKCS8Key;
0 10 1 object Ljava/lang/Object;
5 6 2 b1 [B
7 9 2 b1 [B
8 9 3 b2 [B
MethodParameters:
Name Flags
object
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
astore 2
start local 2 2: iconst_1
istore 3
start local 3 3: goto 6
4: StackMap locals: int byte[] int
StackMap stack:
iload 1
aload 2
iload 3
baload
iload 3
imul
iadd
istore 1
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 2
arraylength
if_icmplt 4
end local 3 7: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs/PKCS8Key;
1 8 1 retval I
2 8 2 b1 [B
3 7 3 i I
}
SourceFile: "PKCS8Key.java"
InnerClasses:
public final Type = java.security.KeyRep$Type of java.security.KeyRep