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 java.security.spec.AlgorithmParameterSpec keyParams;
descriptor: Ljava/security/spec/AlgorithmParameterSpec;
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 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=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic sun.security.rsa.RSAUtil.createAlgorithmId:(Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/x509/AlgorithmId;
astore 4
start local 4 1: new sun.security.rsa.RSAPublicKeyImpl
dup
aload 4
aload 2
aload 3
invokespecial sun.security.rsa.RSAPublicKeyImpl.<init>:(Lsun/security/x509/AlgorithmId;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 type Lsun/security/rsa/RSAUtil$KeyType;
0 2 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 2 2 n Ljava/math/BigInteger;
0 2 3 e Ljava/math/BigInteger;
1 2 4 rsaId Lsun/security/x509/AlgorithmId;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
type
params
n
e
void <init>(sun.security.x509.AlgorithmId, java.math.BigInteger, java.math.BigInteger);
descriptor: (Lsun/security/x509/AlgorithmId;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial sun.security.x509.X509Key.<init>:()V
1: aload 2
invokevirtual java.math.BigInteger.bitLength:()I
aload 3
invokestatic sun.security.rsa.RSAKeyFactory.checkRSAProviderKeyLengths:(ILjava/math/BigInteger;)V
2: aload 2
aload 3
invokestatic sun.security.rsa.RSAPublicKeyImpl.checkExponentRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
3: aload 0
aload 2
putfield sun.security.rsa.RSAPublicKeyImpl.n:Ljava/math/BigInteger;
4: aload 0
aload 3
putfield sun.security.rsa.RSAPublicKeyImpl.e:Ljava/math/BigInteger;
5: aload 0
aload 1
invokestatic sun.security.rsa.RSAUtil.getParamSpec:(Lsun/security/x509/AlgorithmId;)Ljava/security/spec/AlgorithmParameterSpec;
putfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
6: aload 0
aload 1
putfield sun.security.rsa.RSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
7: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 4
start local 4 8: aload 4
aload 2
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
9: aload 4
aload 3
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
10: new sun.security.util.DerValue
dup
bipush 48
11: aload 4
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
12: invokespecial sun.security.util.DerValue.<init>:(B[B)V
13: invokevirtual sun.security.util.DerValue.toByteArray:()[B
14: astore 5
start local 5 15: aload 0
new sun.security.util.BitArray
dup
aload 5
arraylength
bipush 8
imul
aload 5
invokespecial sun.security.util.BitArray.<init>:(I[B)V
invokevirtual sun.security.rsa.RSAPublicKeyImpl.setKey:(Lsun/security/util/BitArray;)V
end local 5 end local 4 16: goto 19
StackMap locals: sun.security.rsa.RSAPublicKeyImpl sun.security.x509.AlgorithmId java.math.BigInteger java.math.BigInteger
StackMap stack: java.io.IOException
17: astore 4
start local 4 18: new java.security.InvalidKeyException
dup
aload 4
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 20 1 rsaId Lsun/security/x509/AlgorithmId;
0 20 2 n Ljava/math/BigInteger;
0 20 3 e Ljava/math/BigInteger;
8 16 4 out Lsun/security/util/DerOutputStream;
15 16 5 keyArray [B
18 19 4 exc Ljava/io/IOException;
Exception table:
from to target type
7 16 17 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
rsaId
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
aload 0
getfield sun.security.rsa.RSAPublicKeyImpl.algid:Lsun/security/x509/AlgorithmId;
invokestatic sun.security.rsa.RSAUtil.getParamSpec:(Lsun/security/x509/AlgorithmId;)Ljava/security/spec/AlgorithmParameterSpec;
putfield sun.security.rsa.RSAPublicKeyImpl.keyParams:Ljava/security/spec/AlgorithmParameterSpec;
7: goto 10
StackMap locals:
StackMap stack: java.security.ProviderException
8: astore 2
start local 2 9: new java.security.InvalidKeyException
dup
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/rsa/RSAPublicKeyImpl;
0 11 1 encoded [B
9 10 2 e Ljava/security/ProviderException;
Exception table:
from to target type
6 7 8 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.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/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
invokevirtual sun.security.rsa.RSAPublicKeyImpl.getAlgorithm:()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