public class sun.security.x509.X509Key implements java.security.PublicKey
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.x509.X509Key
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -5359250853002055002
protected sun.security.x509.AlgorithmId algid;
descriptor: Lsun/security/x509/AlgorithmId;
flags: (0x0004) ACC_PROTECTED
protected byte[] key;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
java.lang.Deprecated()
private int unusedBits;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private sun.security.util.BitArray bitStringKey;
descriptor: Lsun/security/util/BitArray;
flags: (0x0002) ACC_PRIVATE
protected byte[] encodedKey;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.security.x509.X509Key.key:[B
2: aload 0
iconst_0
putfield sun.security.x509.X509Key.unusedBits:I
3: aload 0
aconst_null
putfield sun.security.x509.X509Key.bitStringKey:Lsun/security/util/BitArray;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/x509/X509Key;
private void <init>(sun.security.x509.AlgorithmId, sun.security.util.BitArray);
descriptor: (Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)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
aconst_null
putfield sun.security.x509.X509Key.key:[B
2: aload 0
iconst_0
putfield sun.security.x509.X509Key.unusedBits:I
3: aload 0
aconst_null
putfield sun.security.x509.X509Key.bitStringKey:Lsun/security/util/BitArray;
4: aload 0
aload 1
putfield sun.security.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
5: aload 0
aload 2
invokevirtual sun.security.x509.X509Key.setKey:(Lsun/security/util/BitArray;)V
6: aload 0
invokevirtual sun.security.x509.X509Key.encode:()[B
pop
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/x509/X509Key;
0 8 1 algid Lsun/security/x509/AlgorithmId;
0 8 2 key Lsun/security/util/BitArray;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
algid
key
protected void setKey(sun.security.util.BitArray);
descriptor: (Lsun/security/util/BitArray;)V
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.util.BitArray.clone:()Ljava/lang/Object;
checkcast sun.security.util.BitArray
putfield sun.security.x509.X509Key.bitStringKey:Lsun/security/util/BitArray;
1: aload 0
aload 1
invokevirtual sun.security.util.BitArray.toByteArray:()[B
putfield sun.security.x509.X509Key.key:[B
2: aload 1
invokevirtual sun.security.util.BitArray.length:()I
bipush 8
irem
istore 2
start local 2 3: aload 0
4: iload 2
ifne 5
iconst_0
goto 6
StackMap locals: sun.security.x509.X509Key sun.security.util.BitArray int
StackMap stack: sun.security.x509.X509Key
5: bipush 8
iload 2
isub
6: StackMap locals: sun.security.x509.X509Key sun.security.util.BitArray int
StackMap stack: sun.security.x509.X509Key int
putfield sun.security.x509.X509Key.unusedBits:I
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/x509/X509Key;
0 8 1 key Lsun/security/util/BitArray;
3 8 2 remaining I
MethodParameters:
Name Flags
key
protected sun.security.util.BitArray getKey();
descriptor: ()Lsun/security/util/BitArray;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new sun.security.util.BitArray
dup
1: aload 0
getfield sun.security.x509.X509Key.key:[B
arraylength
bipush 8
imul
aload 0
getfield sun.security.x509.X509Key.unusedBits:I
isub
2: aload 0
getfield sun.security.x509.X509Key.key:[B
invokespecial sun.security.util.BitArray.<init>:(I[B)V
3: putfield sun.security.x509.X509Key.bitStringKey:Lsun/security/util/BitArray;
4: aload 0
getfield sun.security.x509.X509Key.bitStringKey:Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.clone:()Ljava/lang/Object;
checkcast sun.security.util.BitArray
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/x509/X509Key;
public static java.security.PublicKey parse(sun.security.util.DerValue);
descriptor: (Lsun/security/util/DerValue;)Ljava/security/PublicKey;
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 subject 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.getDerValue:()Lsun/security/util/DerValue;
invokestatic sun.security.x509.AlgorithmId.parse:(Lsun/security/util/DerValue;)Lsun/security/x509/AlgorithmId;
astore 1
start local 1 3: aload 1
4: aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getUnalignedBitString:()Lsun/security/util/BitArray;
5: invokestatic sun.security.x509.X509Key.buildX509Key:(Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)Ljava/security/PublicKey;
astore 2
start local 2 6: goto 9
end local 2 StackMap locals: sun.security.util.DerValue sun.security.x509.AlgorithmId
StackMap stack: java.security.InvalidKeyException
7: astore 3
start local 3 8: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "subject key, "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
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;
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 start local 2 9: StackMap locals: java.security.PublicKey
StackMap stack:
aload 0
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 11
10: new java.io.IOException
dup
ldc "excess subject key"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 in Lsun/security/util/DerValue;
3 12 1 algorithm Lsun/security/x509/AlgorithmId;
6 7 2 subjectKey Ljava/security/PublicKey;
9 12 2 subjectKey Ljava/security/PublicKey;
8 9 3 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
3 6 7 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.x509.X509Key.encode:()[B
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/x509/X509Key;
Exceptions:
throws java.io.IOException, java.security.InvalidKeyException
static java.security.PublicKey buildX509Key(sun.security.x509.AlgorithmId, sun.security.util.BitArray);
descriptor: (Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)Ljava/security/PublicKey;
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.x509.X509Key.encode:(Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)V
2: new java.security.spec.X509EncodedKeySpec
dup
aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial java.security.spec.X509EncodedKeySpec.<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.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
6: areturn
end local 4 7: StackMap locals: sun.security.x509.AlgorithmId sun.security.util.BitArray sun.security.util.DerOutputStream java.security.spec.X509EncodedKeySpec
StackMap stack: java.security.NoSuchAlgorithmException
pop
goto 10
8: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 4
start local 4 9: new java.security.InvalidKeyException
dup
aload 4
invokevirtual java.security.spec.InvalidKeySpecException.getMessage:()Ljava/lang/String;
aload 4
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
ldc ""
astore 4
start local 4 11: ldc "SUN"
invokestatic java.security.Security.getProvider:(Ljava/lang/String;)Ljava/security/Provider;
astore 5
start local 5 12: aload 5
ifnonnull 14
13: new java.lang.InstantiationException
dup
invokespecial java.lang.InstantiationException.<init>:()V
athrow
14: StackMap locals: java.lang.String java.security.Provider
StackMap stack:
aload 5
new java.lang.StringBuilder
dup
ldc "PublicKey.X.509."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: 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;
16: invokevirtual java.security.Provider.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
17: aload 4
ifnonnull 19
18: new java.lang.InstantiationException
dup
invokespecial java.lang.InstantiationException.<init>:()V
athrow
19: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 20: aload 4
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
21: goto 26
StackMap locals: sun.security.x509.AlgorithmId sun.security.util.BitArray sun.security.util.DerOutputStream java.security.spec.X509EncodedKeySpec java.lang.String java.security.Provider java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
22: pop
23: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 7
start local 7 24: aload 7
ifnull 26
25: aload 7
aload 4
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 6
end local 7 26: StackMap locals:
StackMap stack:
aconst_null
astore 7
start local 7 27: aload 6
ifnull 29
28: aload 6
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
astore 7
29: StackMap locals: java.lang.Object
StackMap stack:
aload 7
instanceof sun.security.x509.X509Key
ifeq 40
30: aload 7
checkcast sun.security.x509.X509Key
astore 8
start local 8 31: aload 8
aload 0
putfield sun.security.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
32: aload 8
aload 1
invokevirtual sun.security.x509.X509Key.setKey:(Lsun/security/util/BitArray;)V
33: aload 8
invokevirtual sun.security.x509.X509Key.parseKeyBits:()V
34: aload 8
35: areturn
end local 8 end local 7 end local 6 end local 5 36: StackMap locals: sun.security.x509.AlgorithmId sun.security.util.BitArray sun.security.util.DerOutputStream java.security.spec.X509EncodedKeySpec java.lang.String
StackMap stack: java.lang.ClassNotFoundException
pop
goto 40
37: StackMap locals:
StackMap stack: java.lang.InstantiationException
pop
goto 40
38: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
pop
39: 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
40: StackMap locals:
StackMap stack:
new sun.security.x509.X509Key
dup
aload 0
aload 1
invokespecial sun.security.x509.X509Key.<init>:(Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)V
astore 5
start local 5 41: 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 42 0 algid Lsun/security/x509/AlgorithmId;
0 42 1 key Lsun/security/util/BitArray;
1 42 2 x509EncodedKeyStream Lsun/security/util/DerOutputStream;
4 42 3 x509KeySpec Ljava/security/spec/X509EncodedKeySpec;
5 7 4 keyFac Ljava/security/KeyFactory;
9 10 4 e Ljava/security/spec/InvalidKeySpecException;
11 42 4 classname Ljava/lang/String;
12 36 5 sunProvider Ljava/security/Provider;
20 36 6 keyClass Ljava/lang/Class<*>;
24 26 7 cl Ljava/lang/ClassLoader;
27 36 7 inst Ljava/lang/Object;
31 36 8 result Lsun/security/x509/X509Key;
41 42 5 result Lsun/security/x509/X509Key;
Exception table:
from to target type
4 6 7 Class java.security.NoSuchAlgorithmException
4 6 8 Class java.security.spec.InvalidKeySpecException
20 21 22 Class java.lang.ClassNotFoundException
11 35 36 Class java.lang.ClassNotFoundException
11 35 37 Class java.lang.InstantiationException
11 35 38 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.x509.X509Key.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/x509/X509Key;
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.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/X509Key;
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.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
aload 0
invokevirtual sun.security.x509.X509Key.getKey:()Lsun/security/util/BitArray;
invokestatic sun.security.x509.X509Key.encode:(Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/x509/X509Key;
0 2 1 out Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public byte[] getEncoded();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.x509.X509Key.getEncodedInternal:()[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
1: areturn
2: StackMap locals:
StackMap stack: java.security.InvalidKeyException
pop
3: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/x509/X509Key;
Exception table:
from to target type
0 1 2 Class java.security.InvalidKeyException
public byte[] getEncodedInternal();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.x509.X509Key.encodedKey:[B
astore 1
start local 1 1: aload 1
ifnonnull 11
2: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 3: aload 0
aload 2
invokevirtual sun.security.x509.X509Key.encode:(Lsun/security/util/DerOutputStream;)V
4: aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
astore 1
end local 2 5: goto 10
StackMap locals: sun.security.x509.X509Key byte[]
StackMap stack: java.io.IOException
6: astore 2
start local 2 7: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: 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;
9: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.security.x509.X509Key.encodedKey:[B
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/x509/X509Key;
1 12 1 encoded [B
3 5 2 out Lsun/security/util/DerOutputStream;
7 10 2 e Ljava/io/IOException;
Exception table:
from to target type
2 5 6 Class java.io.IOException
Exceptions:
throws 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 "X.509"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/X509Key;
public byte[] encode();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.x509.X509Key.getEncodedInternal:()[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/X509Key;
Exceptions:
throws java.security.InvalidKeyException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.misc.HexDumpEncoder
dup
invokespecial sun.misc.HexDumpEncoder.<init>:()V
astore 1
start local 1 1: new java.lang.StringBuilder
dup
ldc "algorithm = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
invokevirtual sun.security.x509.AlgorithmId.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc ", unparsed keybits = \n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
aload 0
getfield sun.security.x509.X509Key.key:[B
invokevirtual sun.misc.HexDumpEncoder.encodeBuffer:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/x509/X509Key;
1 4 1 encoder Lsun/misc/HexDumpEncoder;
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 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.x509.X509Key.algid:Lsun/security/x509/AlgorithmId;
4: aload 0
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getUnalignedBitString:()Lsun/security/util/BitArray;
invokevirtual sun.security.x509.X509Key.setKey:(Lsun/security/util/BitArray;)V
5: aload 0
invokevirtual sun.security.x509.X509Key.parseKeyBits:()V
6: aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 12
7: new java.security.InvalidKeyException
dup
ldc "excess key data"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 2 8: StackMap locals: sun.security.x509.X509Key java.io.InputStream
StackMap stack: java.io.IOException
astore 3
start local 3 9: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "IOException: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: 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;
11: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 3 start local 2 12: 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 13 0 this Lsun/security/x509/X509Key;
0 13 1 in Ljava/io/InputStream;
1 8 2 val Lsun/security/util/DerValue;
12 13 2 val Lsun/security/util/DerValue;
9 12 3 e Ljava/io/IOException;
Exception table:
from to target type
0 8 8 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.x509.X509Key.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/x509/X509Key;
0 2 1 encodedKey [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encodedKey
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual sun.security.x509.X509Key.getEncoded:()[B
invokevirtual java.io.ObjectOutputStream.write:([B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/x509/X509Key;
0 2 1 stream Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
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.x509.X509Key.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/x509/X509Key;
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
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
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.x509.X509Key.getEncodedInternal:()[B
astore 2
start local 2 5: aload 1
instanceof sun.security.x509.X509Key
ifeq 8
6: aload 1
checkcast sun.security.x509.X509Key
invokevirtual sun.security.x509.X509Key.getEncodedInternal:()[B
astore 3
start local 3 7: goto 9
end local 3 8: StackMap locals: byte[]
StackMap stack:
aload 1
checkcast java.security.Key
invokeinterface java.security.Key.getEncoded:()[B
astore 3
start local 3 9: StackMap locals: byte[]
StackMap stack:
aload 2
aload 3
invokestatic java.util.Arrays.equals:([B[B)Z
10: ireturn
end local 3 end local 2 11: StackMap locals: sun.security.x509.X509Key java.lang.Object
StackMap stack: java.security.InvalidKeyException
pop
12: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/x509/X509Key;
0 13 1 obj Ljava/lang/Object;
5 11 2 thisEncoded [B
7 8 3 otherEncoded [B
9 11 3 otherEncoded [B
Exception table:
from to target type
4 10 11 Class java.security.InvalidKeyException
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.x509.X509Key.getEncodedInternal:()[B
astore 1
start local 1 1: aload 1
arraylength
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: byte[] int int
StackMap stack:
iload 2
aload 1
iload 3
baload
sipush 255
iand
bipush 37
imul
iadd
istore 2
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 1
arraylength
if_icmplt 4
end local 3 7: iload 2
8: ireturn
end local 2 end local 1 9: StackMap locals: sun.security.x509.X509Key
StackMap stack: java.security.InvalidKeyException
pop
10: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/x509/X509Key;
1 9 1 b1 [B
2 9 2 r I
3 7 3 i I
Exception table:
from to target type
0 8 9 Class java.security.InvalidKeyException
static void encode(sun.security.util.DerOutputStream, sun.security.x509.AlgorithmId, sun.security.util.BitArray);
descriptor: (Lsun/security/util/DerOutputStream;Lsun/security/x509/AlgorithmId;Lsun/security/util/BitArray;)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 1
aload 3
invokevirtual sun.security.x509.AlgorithmId.encode:(Lsun/security/util/DerOutputStream;)V
2: aload 3
aload 2
invokevirtual sun.security.util.DerOutputStream.putUnalignedBitString:(Lsun/security/util/BitArray;)V
3: aload 0
bipush 48
aload 3
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 out Lsun/security/util/DerOutputStream;
0 5 1 algid Lsun/security/x509/AlgorithmId;
0 5 2 key Lsun/security/util/BitArray;
1 5 3 tmp Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
algid
key
}
SourceFile: "X509Key.java"