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
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 void <init>(java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 0
aload 1
putfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
2: aload 0
aload 2
putfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
3: aload 1
invokevirtual java.math.BigInteger.bitLength:()I
aload 2
invokestatic sun.security.rsa.RSAKeyFactory.checkRSAProviderKeyLengths:(ILjava/math/BigInteger;)V
4: aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.checkExponentRange:()V
5: aload 0
getstatic sun.security.rsa.RSAPrivateCrtKeyImpl.rsaId:Lsun/security/x509/AlgorithmId;
putfield sun.security.rsa.RSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
6: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 7: aload 3
aload 1
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
8: aload 3
aload 2
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
9: new sun.security.util.DerValue
dup
bipush 48
10: aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
11: invokespecial sun.security.util.DerValue.<init>:(B[B)V
12: invokevirtual sun.security.util.DerValue.toByteArray:()[B
13: astore 4
start local 4 14: aload 0
new sun.security.util.BitArray
dup
aload 4
arraylength
bipush 8
imul
aload 4
invokespecial sun.security.util.BitArray.<init>:(I[B)V
invokevirtual sun.security.rsa.RSAPublicKeyImpl.setKey:(Lsun/security/util/BitArray;)V
end local 4 end local 3 15: goto 18
StackMap locals: sun.security.rsa.RSAPublicKeyImpl java.math.BigInteger java.math.BigInteger
StackMap stack: java.io.IOException
16: astore 3
start local 3 17: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 19 1 n Ljava/math/BigInteger;
0 19 2 e Ljava/math/BigInteger;
7 15 3 out Lsun/security/util/DerOutputStream;
14 15 4 keyArray [B
17 18 3 exc Ljava/io/IOException;
Exception table:
from to target type
6 15 16 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
n
e
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 0
aload 1
invokevirtual sun.security.rsa.RSAPublicKeyImpl.decode:([B)V
2: 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
3: aload 0
invokevirtual sun.security.rsa.RSAPublicKeyImpl.checkExponentRange:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 5 1 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
private void checkExponentRange();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
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 0
getfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
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 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/rsa/RSAPublicKeyImpl;
Exceptions:
throws java.security.InvalidKeyException
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: ldc "RSA"
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;
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 RSA public key, "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
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;
ldc " bits\n modulus: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
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;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 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