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
private static final int V1;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int V2;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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;
protected void <init>(byte[]);
descriptor: ([B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: 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
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/pkcs/PKCS8Key;
0 3 1 input [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
input
private void decode(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, 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.getInteger:()I
istore 3
start local 3 4: iload 3
ifeq 6
iload 3
iconst_1
if_icmpeq 6
5: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "unknown version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
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
6: StackMap locals: int
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;
7: 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
8: aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 10
9: return
10: StackMap locals:
StackMap stack:
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 4
start local 4 11: aload 4
iconst_0
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifeq 15
12: aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 14
13: return
14: 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.getDerValue:()Lsun/security/util/DerValue;
astore 4
15: StackMap locals:
StackMap stack:
aload 4
iconst_1
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifeq 20
16: iload 3
ifne 18
17: new java.security.InvalidKeyException
dup
ldc "publicKey seen in v1"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 20
19: return
20: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Extra bytes"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 21: StackMap locals: sun.security.pkcs.PKCS8Key java.io.InputStream
StackMap stack: java.io.IOException
astore 2
start local 2 22: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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;
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 23 0 this Lsun/security/pkcs/PKCS8Key;
0 23 1 is Ljava/io/InputStream;
1 21 2 val Lsun/security/util/DerValue;
4 21 3 version I
11 21 4 next Lsun/security/util/DerValue;
22 23 2 e Ljava/io/IOException;
Exception table:
from to target type
0 9 21 Class java.io.IOException
10 13 21 Class java.io.IOException
14 19 21 Class java.io.IOException
20 21 21 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
is
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=4, locals=3, args_size=1
start local 0 0: new sun.security.pkcs.PKCS8Key
dup
aload 0
invokevirtual sun.security.util.DerValue.toByteArray:()[B
invokespecial sun.security.pkcs.PKCS8Key.<init>:([B)V
astore 1
start local 1 1: new java.security.spec.PKCS8EncodedKeySpec
dup
aload 1
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
2: astore 2
start local 2 3: aload 1
getfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
4: aload 2
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
5: areturn
6: StackMap locals: sun.security.util.DerValue sun.security.pkcs.PKCS8Key java.security.spec.PKCS8EncodedKeySpec
StackMap stack: java.security.GeneralSecurityException
pop
7: aload 1
8: areturn
end local 2 end local 1 9: StackMap locals: sun.security.util.DerValue
StackMap stack: java.security.InvalidKeyException
astore 1
start local 1 10: new java.io.IOException
dup
ldc "corrupt private key"
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 in Lsun/security/util/DerValue;
1 9 1 rawKey Lsun/security/pkcs/PKCS8Key;
3 9 2 pkcs8KeySpec Ljava/security/spec/PKCS8EncodedKeySpec;
10 11 1 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
3 5 6 Class java.security.NoSuchAlgorithmException
3 5 6 Class java.security.spec.InvalidKeySpecException
0 5 9 Class java.security.InvalidKeyException
6 8 9 Class java.security.InvalidKeyException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
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 synchronized byte[] getEncoded();
descriptor: ()[B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.encode:()V
1: aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
2: areturn
3: StackMap locals:
StackMap stack: java.security.InvalidKeyException
pop
4: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs/PKCS8Key;
Exception table:
from to target type
0 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;
private void encode();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs.PKCS8Key.encodedKey:[B
ifnonnull 13
1: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 1
start local 1 2: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 3: aload 2
iconst_0
invokevirtual sun.security.util.DerOutputStream.putInteger:(I)V
4: aload 0
getfield sun.security.pkcs.PKCS8Key.algid:Lsun/security/x509/AlgorithmId;
aload 2
invokevirtual sun.security.x509.AlgorithmId.encode:(Lsun/security/util/DerOutputStream;)V
5: aload 2
aload 0
getfield sun.security.pkcs.PKCS8Key.key:[B
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
6: aload 1
bipush 48
aload 2
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
7: aload 0
aload 1
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.pkcs.PKCS8Key.encodedKey:[B
end local 2 end local 1 8: goto 13
StackMap locals:
StackMap stack: java.io.IOException
9: astore 1
start local 1 10: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: 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;
12: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 1 13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/security/pkcs/PKCS8Key;
2 8 1 out Lsun/security/util/DerOutputStream;
3 8 2 tmp Lsun/security/util/DerOutputStream;
10 13 1 e Ljava/io/IOException;
Exception table:
from to target type
1 8 9 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
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 6
StackMap locals:
StackMap stack: java.security.InvalidKeyException
2: astore 2
start local 2 3: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "deserialized key is invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: 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;
5: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs/PKCS8Key;
0 7 1 stream Ljava/io/ObjectInputStream;
3 6 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
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, 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 6
3: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
4: aload 1
checkcast java.security.Key
invokeinterface java.security.Key.getEncoded:()[B
5: invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs/PKCS8Key;
0 7 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs.PKCS8Key.getEncoded:()[B
invokestatic java.util.Arrays.hashCode:([B)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs/PKCS8Key;
}
SourceFile: "PKCS8Key.java"
InnerClasses:
public final Type = java.security.KeyRep$Type of java.security.KeyRep