public class sun.security.rsa.RSAUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.rsa.RSAUtil
super_class: java.lang.Object
{
private static volatile int[] $SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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/rsa/RSAUtil;
public static void checkParamsAgainstType(sun.security.rsa.RSAUtil$KeyType, java.security.spec.AlgorithmParameterSpec);
descriptor: (Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: invokestatic sun.security.rsa.RSAUtil.$SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType:()[I
aload 0
invokevirtual sun.security.rsa.RSAUtil$KeyType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 1
2: 5
default: 10
}
1: StackMap locals:
StackMap stack:
aload 1
ifnull 13
2: new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "null params expected for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
invokevirtual sun.security.rsa.RSAUtil$KeyType.keyAlgo:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
ifnull 13
6: aload 1
instanceof java.security.spec.PSSParameterSpec
ifne 13
7: new java.security.ProviderException
dup
8: new java.lang.StringBuilder
dup
ldc "PSSParmeterSpec expected for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual sun.security.rsa.RSAUtil$KeyType.keyAlgo:()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.ProviderException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
11: new java.lang.StringBuilder
dup
ldc "Unsupported RSA algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 type Lsun/security/rsa/RSAUtil$KeyType;
0 14 1 paramSpec Ljava/security/spec/AlgorithmParameterSpec;
Exceptions:
throws java.security.ProviderException
MethodParameters:
Name Flags
type
paramSpec
public static sun.security.x509.AlgorithmId createAlgorithmId(sun.security.rsa.RSAUtil$KeyType, java.security.spec.AlgorithmParameterSpec);
descriptor: (Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/x509/AlgorithmId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic sun.security.rsa.RSAUtil.checkParamsAgainstType:(Lsun/security/rsa/RSAUtil$KeyType;Ljava/security/spec/AlgorithmParameterSpec;)V
1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: invokestatic sun.security.rsa.RSAUtil.$SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType:()[I
aload 0
invokevirtual sun.security.rsa.RSAUtil$KeyType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 4
2: 6
default: 11
}
4: StackMap locals: sun.security.util.ObjectIdentifier java.security.AlgorithmParameters
StackMap stack:
getstatic sun.security.x509.AlgorithmId.RSAEncryption_oid:Lsun/security/util/ObjectIdentifier;
astore 2
5: goto 14
6: StackMap locals:
StackMap stack:
aload 1
ifnull 9
7: aload 0
invokevirtual sun.security.rsa.RSAUtil$KeyType.keyAlgo:()Ljava/lang/String;
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;)Ljava/security/AlgorithmParameters;
astore 3
8: aload 3
aload 1
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
9: StackMap locals:
StackMap stack:
getstatic sun.security.x509.AlgorithmId.RSASSA_PSS_oid:Lsun/security/util/ObjectIdentifier;
astore 2
10: goto 14
11: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
12: new java.lang.StringBuilder
dup
ldc "Unsupported RSA algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 3
ifnonnull 17
15: new sun.security.x509.AlgorithmId
dup
aload 2
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;)V
astore 4
start local 4 16: goto 18
end local 4 17: StackMap locals:
StackMap stack:
new sun.security.x509.AlgorithmId
dup
aload 2
aload 3
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;Ljava/security/AlgorithmParameters;)V
astore 4
start local 4 18: StackMap locals: sun.security.x509.AlgorithmId
StackMap stack:
aload 4
19: areturn
end local 4 20: StackMap locals: sun.security.rsa.RSAUtil$KeyType java.security.spec.AlgorithmParameterSpec sun.security.util.ObjectIdentifier java.security.AlgorithmParameters
StackMap stack: java.security.GeneralSecurityException
astore 4
start local 4 21: new java.security.ProviderException
dup
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 type Lsun/security/rsa/RSAUtil$KeyType;
0 22 1 paramSpec Ljava/security/spec/AlgorithmParameterSpec;
2 22 2 oid Lsun/security/util/ObjectIdentifier;
3 22 3 params Ljava/security/AlgorithmParameters;
16 17 4 result Lsun/security/x509/AlgorithmId;
18 20 4 result Lsun/security/x509/AlgorithmId;
21 22 4 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
3 19 20 Class java.security.NoSuchAlgorithmException
3 19 20 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.security.ProviderException
MethodParameters:
Name Flags
type
paramSpec
public static java.security.spec.AlgorithmParameterSpec getParamSpec(sun.security.x509.AlgorithmId);
descriptor: (Lsun/security/x509/AlgorithmId;)Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.security.ProviderException
dup
ldc "AlgorithmId should not be null"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.x509.AlgorithmId.getParameters:()Ljava/security/AlgorithmParameters;
invokestatic sun.security.rsa.RSAUtil.getParamSpec:(Ljava/security/AlgorithmParameters;)Ljava/security/spec/AlgorithmParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 algid Lsun/security/x509/AlgorithmId;
Exceptions:
throws java.security.ProviderException
MethodParameters:
Name Flags
algid
public static java.security.spec.AlgorithmParameterSpec getParamSpec(java.security.AlgorithmParameters);
descriptor: (Ljava/security/AlgorithmParameters;)Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.security.AlgorithmParameters.getAlgorithm:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
invokestatic sun.security.rsa.RSAUtil$KeyType.lookup:(Ljava/lang/String;)Lsun/security/rsa/RSAUtil$KeyType;
astore 2
start local 2 3: invokestatic sun.security.rsa.RSAUtil.$SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType:()[I
aload 2
invokevirtual sun.security.rsa.RSAUtil$KeyType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 4
2: 7
default: 9
}
4: StackMap locals: java.lang.String sun.security.rsa.RSAUtil$KeyType
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "No params accepted for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 2
invokevirtual sun.security.rsa.RSAUtil$KeyType.keyAlgo:()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.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
ldc Ljava/security/spec/PSSParameterSpec;
astore 3
start local 3 8: goto 10
end local 3 9: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported RSA algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
start local 3 10: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 3
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
11: areturn
end local 3 end local 2 end local 1 12: StackMap locals: java.security.AlgorithmParameters
StackMap stack: java.security.ProviderException
astore 1
start local 1 13: aload 1
athrow
end local 1 14: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 15: new java.security.ProviderException
dup
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 params Ljava/security/AlgorithmParameters;
2 12 1 algName Ljava/lang/String;
3 12 2 type Lsun/security/rsa/RSAUtil$KeyType;
8 9 3 specCls Ljava/lang/Class<+Ljava/security/spec/AlgorithmParameterSpec;>;
10 12 3 specCls Ljava/lang/Class<+Ljava/security/spec/AlgorithmParameterSpec;>;
13 14 1 pe Ljava/security/ProviderException;
15 16 1 e Ljava/lang/Exception;
Exception table:
from to target type
1 11 12 Class java.security.ProviderException
1 11 14 Class java.lang.Exception
Exceptions:
throws java.security.ProviderException
MethodParameters:
Name Flags
params
static int[] $SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.security.rsa.RSAUtil.$SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic sun.security.rsa.RSAUtil$KeyType.values:()[Lsun/security/rsa/RSAUtil$KeyType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic sun.security.rsa.RSAUtil$KeyType.PSS:Lsun/security/rsa/RSAUtil$KeyType;
invokevirtual sun.security.rsa.RSAUtil$KeyType.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic sun.security.rsa.RSAUtil$KeyType.RSA:Lsun/security/rsa/RSAUtil$KeyType;
invokevirtual sun.security.rsa.RSAUtil$KeyType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
dup
putstatic sun.security.rsa.RSAUtil.$SWITCH_TABLE$sun$security$rsa$RSAUtil$KeyType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
}
SourceFile: "RSAUtil.java"
NestMembers:
sun.security.rsa.RSAUtil$KeyType
InnerClasses:
public final KeyType = sun.security.rsa.RSAUtil$KeyType of sun.security.rsa.RSAUtil