public final class sun.security.rsa.RSAPublicKeyImpl extends sun.security.x509.X509Key implements java.security.interfaces.RSAPublicKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.rsa.RSAPublicKeyImpl
super_class: sun.security.x509.X509Key
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2644735423591199609
private static final java.math.BigInteger THREE;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.math.BigInteger n;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
private java.math.BigInteger e;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
private transient sun.security.rsa.RSAUtil$KeyType type;
descriptor: Lsun/security/rsa/RSAUtil$KeyType;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.security.spec.AlgorithmParameterSpec keyParams;
descriptor: Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc 3
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic sun.security.rsa.RSAPublicKeyImpl.THREE:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public static java.security.interfaces.RSAPublicKey newKey(byte[]);
descriptor: ([B)Ljava/security/interfaces/RSAPublicKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.security.rsa.RSAPublicKeyImpl
dup
aload 0
invokespecial sun.security.rsa.RSAPublicKeyImpl.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
public static java.security.interfaces.RSAPublicKey newKey(sun.security.rsa.RSAUtil$KeyType, java.security.spec.AlgorithmParameterSpec, java.math.BigInteger, java.math.BigInteger);
descriptor: (Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/interfaces/RSAPublicKey;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new sun.security.rsa.RSAPublicKeyImpl
dup
aload 0
aload 1
aload 2
aload 3
invokespecial sun.security.rsa.RSAPublicKeyImpl.<init>:(Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Lsun/security/rsa/RSAUtil$KeyType;
0 1 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 1 2 n Ljava/math/BigInteger;
0 1 3 e Ljava/math/BigInteger;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
type
params
n
e
void <init>(sun.security.rsa.RSAUtil$KeyType, java.security.spec.AlgorithmParameterSpec, java.math.BigInteger, java.math.BigInteger);
descriptor: (Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 3
invokevirtual java.math.BigInteger.bitLength:()I
aload 4
invokestatic sun.security.rsa.RSAKeyFactory.checkRSAProviderKeyLengths:(ILjava/math/BigInteger;)V
2: aload 3
aload 4
invokestatic sun.security.rsa.RSAPublicKeyImpl.checkExponentRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
3: aload 0
aload 3
putfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
4: aload 0
aload 4
putfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
5: aload 0
aload 1
aload 2
invokestatic sun.security.rsa.RSAUtil.createAlgorithmId:(Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/x509/AlgorithmId;
putfield sun.security.rsa.RSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
6: goto 9
StackMap locals: sun.security.rsa.RSAPublicKeyImpl sun.security.rsa.RSAUtil$KeyType java.security.spec.AlgorithmParameterSpec java.math.BigInteger java.math.BigInteger
StackMap stack: java.security.ProviderException
7: astore 5
start local 5 8: new java.security.InvalidKeyException
dup
aload 5
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.security.rsa.RSAPublicKeyImpl.type:Lsun/security/rsa/RSAUtil$KeyType;
10: aload 0
aload 2
putfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
11: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 5
start local 5 12: aload 5
aload 3
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
13: aload 5
aload 4
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
14: new sun.security.util.DerValue
dup
bipush 48
15: aload 5
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
16: invokespecial sun.security.util.DerValue.<init>:(B[B)V
17: invokevirtual sun.security.util.DerValue.toByteArray:()[B
18: astore 6
start local 6 19: aload 0
new sun.security.util.BitArray
dup
aload 6
arraylength
bipush 8
imul
aload 6
invokespecial sun.security.util.BitArray.<init>:(I[B)V
invokevirtual sun.security.rsa.RSAPublicKeyImpl.setKey:(Lsun/security/util/BitArray;)V
end local 6 end local 5 20: goto 23
StackMap locals:
StackMap stack: java.io.IOException
21: astore 5
start local 5 22: new java.security.InvalidKeyException
dup
aload 5
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 23: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 24 1 type Lsun/security/rsa/RSAUtil$KeyType;
0 24 2 keyParams Ljava/security/spec/AlgorithmParameterSpec;
0 24 3 n Ljava/math/BigInteger;
0 24 4 e Ljava/math/BigInteger;
8 9 5 pe Ljava/security/ProviderException;
12 20 5 out Lsun/security/util/DerOutputStream;
19 20 6 keyArray [B
22 23 5 exc Ljava/io/IOException;
Exception table:
from to target type
5 6 7 Class java.security.ProviderException
11 20 21 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
type
keyParams
n
e
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 1
ifnull 2
aload 1
arraylength
ifne 3
2: StackMap locals: sun.security.rsa.RSAPublicKeyImpl byte[]
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Missing key encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.rsa.RSAPublicKeyImpl.decode:([B)V
4: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
invokestatic sun.security.rsa.RSAKeyFactory.checkRSAProviderKeyLengths:(ILjava/math/BigInteger;)V
5: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
invokestatic sun.security.rsa.RSAPublicKeyImpl.checkExponentRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
6: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
invokestatic sun.security.rsa.RSAUtil.getTypeAndParamSpec:(Lsun/security/x509/AlgorithmId;)[Ljava/lang/Object;
astore 2
start local 2 7: aload 0
aload 2
iconst_0
aaload
checkcast sun.security.rsa.RSAUtil$KeyType
putfield sun.security.rsa.RSAPublicKeyImpl.type:Lsun/security/rsa/RSAUtil$KeyType;
8: aload 0
aload 2
iconst_1
aaload
checkcast java.security.spec.AlgorithmParameterSpec
putfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
end local 2 9: goto 12
StackMap locals:
StackMap stack: java.security.ProviderException
10: astore 2
start local 2 11: new java.security.InvalidKeyException
dup
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 13 1 encoded [B
7 9 2 o [Ljava/lang/Object;
11 12 2 e Ljava/security/ProviderException;
Exception table:
from to target type
6 9 10 Class java.security.ProviderException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
static void checkExponentRange(java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 2
1: new java.security.InvalidKeyException
dup
ldc "exponent is larger than modulus"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic sun.security.rsa.RSAPublicKeyImpl.THREE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
ifge 4
3: new java.security.InvalidKeyException
dup
ldc "exponent is smaller than 3"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 mod Ljava/math/BigInteger;
0 5 1 exp Ljava/math/BigInteger;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
mod
exp
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.rsa.RSAPublicKeyImpl.type:Lsun/security/rsa/RSAUtil$KeyType;
getfield sun.security.rsa.RSAUtil$KeyType.keyAlgo:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/rsa/RSAPublicKeyImpl;
public java.math.BigInteger getModulus();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/rsa/RSAPublicKeyImpl;
public java.math.BigInteger getPublicExponent();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/rsa/RSAPublicKeyImpl;
public java.security.spec.AlgorithmParameterSpec getParams();
descriptor: ()Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/rsa/RSAPublicKeyImpl;
protected void parseKeyBits();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=1
start local 0 0: new sun.security.util.DerInputStream
dup
aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.getKey:()Lsun/security/util/BitArray;
invokevirtual sun.security.util.BitArray.toByteArray:()[B
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 1
start local 1 1: aload 1
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 2
start local 2 2: aload 2
getfield sun.security.util.DerValue.tag:B
bipush 48
if_icmpeq 4
3: new java.io.IOException
dup
ldc "Not a SEQUENCE"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: sun.security.util.DerInputStream sun.security.util.DerValue
StackMap stack:
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
astore 3
start local 3 5: aload 0
aload 3
invokevirtual sun.security.util.DerInputStream.getPositiveBigInteger:()Ljava/math/BigInteger;
putfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
6: aload 0
aload 3
invokevirtual sun.security.util.DerInputStream.getPositiveBigInteger:()Ljava/math/BigInteger;
putfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
7: aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 11
8: new java.io.IOException
dup
ldc "Extra data available"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 9: StackMap locals: sun.security.rsa.RSAPublicKeyImpl
StackMap stack: java.io.IOException
astore 1
start local 1 10: new java.security.InvalidKeyException
dup
ldc "Invalid RSA public key"
aload 1
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/rsa/RSAPublicKeyImpl;
1 9 1 in Lsun/security/util/DerInputStream;
2 9 2 derValue Lsun/security/util/DerValue;
5 9 3 data Lsun/security/util/DerInputStream;
10 11 1 e Ljava/io/IOException;
Exception table:
from to target type
0 9 9 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Sun "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.type:Lsun/security/rsa/RSAUtil$KeyType;
getfield sun.security.rsa.RSAUtil$KeyType.keyAlgo:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " public key, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
1: ldc " bits"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n params: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\n modulus: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc "\n public exponent: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/rsa/RSAPublicKeyImpl;
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.PUBLIC:Ljava/security/KeyRep$Type;
1: aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.getAlgorithm:()Ljava/lang/String;
2: aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.getFormat:()Ljava/lang/String;
3: aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.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/rsa/RSAPublicKeyImpl;
Exceptions:
throws java.io.ObjectStreamException
}
SourceFile: "RSAPublicKeyImpl.java"
InnerClasses:
public final Type = java.security.KeyRep$Type of java.security.KeyRep
public final KeyType = sun.security.rsa.RSAUtil$KeyType of sun.security.rsa.RSAUtil