public class javax.crypto.KeyGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.crypto.KeyGenerator
super_class: java.lang.Object
{
private static final sun.security.util.Debug pdebug;
descriptor: Lsun/security/util/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean skipDebug;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int I_NONE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int I_RANDOM;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int I_PARAMS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int I_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private java.security.Provider provider;
descriptor: Ljava/security/Provider;
flags: (0x0002) ACC_PRIVATE
private volatile javax.crypto.KeyGeneratorSpi spi;
descriptor: Ljavax/crypto/KeyGeneratorSpi;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Iterator<java.security.Provider$Service> serviceIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Ljava/security/Provider$Service;>;
private int initType;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int initKeySize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.security.spec.AlgorithmParameterSpec initParams;
descriptor: Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom initRandom;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "provider"
ldc "Provider"
invokestatic sun.security.util.Debug.getInstance:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/util/Debug;
1: putstatic javax.crypto.KeyGenerator.pdebug:Lsun/security/util/Debug;
2: ldc "engine="
invokestatic sun.security.util.Debug.isOn:(Ljava/lang/String;)Z
ifeq 4
ldc "keygenerator"
invokestatic sun.security.util.Debug.isOn:(Ljava/lang/String;)Z
ifne 4
3: iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: putstatic javax.crypto.KeyGenerator.skipDebug:Z
6: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(javax.crypto.KeyGeneratorSpi, java.security.Provider, java.lang.String);
descriptor: (Ljavax/crypto/KeyGeneratorSpi;Ljava/security/Provider;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield javax.crypto.KeyGenerator.lock:Ljava/lang/Object;
2: aload 0
aload 1
putfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
3: aload 0
aload 2
putfield javax.crypto.KeyGenerator.provider:Ljava/security/Provider;
4: aload 0
aload 3
putfield javax.crypto.KeyGenerator.algorithm:Ljava/lang/String;
5: getstatic javax.crypto.KeyGenerator.skipDebug:Z
ifne 9
getstatic javax.crypto.KeyGenerator.pdebug:Lsun/security/util/Debug;
ifnull 9
6: getstatic javax.crypto.KeyGenerator.pdebug:Lsun/security/util/Debug;
new java.lang.StringBuilder
dup
ldc "KeyGenerator."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " algorithm from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
invokevirtual javax.crypto.KeyGenerator.getProviderName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
9: StackMap locals: javax.crypto.KeyGenerator javax.crypto.KeyGeneratorSpi java.security.Provider java.lang.String
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/crypto/KeyGenerator;
0 10 1 keyGenSpi Ljavax/crypto/KeyGeneratorSpi;
0 10 2 provider Ljava/security/Provider;
0 10 3 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
keyGenSpi
provider
algorithm
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield javax.crypto.KeyGenerator.lock:Ljava/lang/Object;
2: aload 0
aload 1
putfield javax.crypto.KeyGenerator.algorithm:Ljava/lang/String;
3: ldc "KeyGenerator"
aload 1
invokestatic sun.security.jca.GetInstance.getServices:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
4: astore 2
start local 2 5: aload 0
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
putfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
6: aload 0
iconst_1
putfield javax.crypto.KeyGenerator.initType:I
7: aload 0
aconst_null
iconst_0
invokevirtual javax.crypto.KeyGenerator.nextSpi:(Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
ifnonnull 11
8: new java.security.NoSuchAlgorithmException
dup
9: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " KeyGenerator not available"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: javax.crypto.KeyGenerator java.lang.String java.util.List
StackMap stack:
getstatic javax.crypto.KeyGenerator.skipDebug:Z
ifne 15
getstatic javax.crypto.KeyGenerator.pdebug:Lsun/security/util/Debug;
ifnull 15
12: getstatic javax.crypto.KeyGenerator.pdebug:Lsun/security/util/Debug;
new java.lang.StringBuilder
dup
ldc "KeyGenerator."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " algorithm from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: aload 0
invokevirtual javax.crypto.KeyGenerator.getProviderName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/crypto/KeyGenerator;
0 16 1 algorithm Ljava/lang/String;
5 16 2 list Ljava/util/List<Ljava/security/Provider$Service;>;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
private java.lang.String getProviderName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.KeyGenerator.provider:Ljava/security/Provider;
ifnonnull 1
ldc "(no provider)"
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield javax.crypto.KeyGenerator.provider:Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/crypto/KeyGenerator;
public final java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.KeyGenerator.algorithm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/KeyGenerator;
public static final javax.crypto.KeyGenerator getInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/crypto/KeyGenerator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new javax.crypto.KeyGenerator
dup
aload 0
invokespecial javax.crypto.KeyGenerator.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 algorithm Ljava/lang/String;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
public static final javax.crypto.KeyGenerator getInstance(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/KeyGenerator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: ldc "KeyGenerator"
2: ldc Ljavax/crypto/KeyGeneratorSpi;
aload 0
aload 1
3: invokestatic javax.crypto.JceSecurity.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Lsun/security/jca/GetInstance$Instance;
astore 2
start local 2 4: new javax.crypto.KeyGenerator
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast javax.crypto.KeyGeneratorSpi
5: aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
6: invokespecial javax.crypto.KeyGenerator.<init>:(Ljavax/crypto/KeyGeneratorSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 algorithm Ljava/lang/String;
0 7 1 provider Ljava/lang/String;
4 7 2 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
MethodParameters:
Name Flags
algorithm
provider
public static final javax.crypto.KeyGenerator getInstance(java.lang.String, java.security.Provider);
descriptor: (Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/KeyGenerator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: ldc "KeyGenerator"
2: ldc Ljavax/crypto/KeyGeneratorSpi;
aload 0
aload 1
3: invokestatic javax.crypto.JceSecurity.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/security/Provider;)Lsun/security/jca/GetInstance$Instance;
astore 2
start local 2 4: new javax.crypto.KeyGenerator
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast javax.crypto.KeyGeneratorSpi
5: aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
6: invokespecial javax.crypto.KeyGenerator.<init>:(Ljavax/crypto/KeyGeneratorSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 algorithm Ljava/lang/String;
0 7 1 provider Ljava/security/Provider;
4 7 2 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
provider
public final java.security.Provider getProvider();
descriptor: ()Ljava/security/Provider;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.crypto.KeyGenerator.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual javax.crypto.KeyGenerator.disableFailover:()V
2: aload 0
getfield javax.crypto.KeyGenerator.provider:Ljava/security/Provider;
aload 1
monitorexit
3: areturn
4: StackMap locals: javax.crypto.KeyGenerator java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
5: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/KeyGenerator;
Exception table:
from to target type
1 3 4 any
4 5 4 any
private javax.crypto.KeyGeneratorSpi nextSpi(javax.crypto.KeyGeneratorSpi, boolean);
descriptor: (Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.crypto.KeyGenerator.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 1
ifnull 4
aload 1
aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
if_acmpeq 4
2: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
aload 3
monitorexit
3: areturn
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
ifnonnull 34
5: aload 3
monitorexit
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Provider$Service
astore 4
start local 4 8: aload 4
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
invokestatic javax.crypto.JceSecurity.canUseProvider:(Ljava/security/Provider;)Z
ifne 10
9: goto 34
10: StackMap locals: java.security.Provider$Service
StackMap stack:
aload 4
aconst_null
invokevirtual java.security.Provider$Service.newInstance:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 11: aload 5
instanceof javax.crypto.KeyGeneratorSpi
ifne 13
12: goto 34
13: StackMap locals: java.lang.Object
StackMap stack:
aload 5
checkcast javax.crypto.KeyGeneratorSpi
astore 6
start local 6 14: iload 2
ifeq 28
15: aload 0
getfield javax.crypto.KeyGenerator.initType:I
iconst_4
if_icmpne 18
16: aload 6
aload 0
getfield javax.crypto.KeyGenerator.initKeySize:I
aload 0
getfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(ILjava/security/SecureRandom;)V
17: goto 28
StackMap locals: javax.crypto.KeyGeneratorSpi
StackMap stack:
18: aload 0
getfield javax.crypto.KeyGenerator.initType:I
iconst_3
if_icmpne 21
19: aload 6
aload 0
getfield javax.crypto.KeyGenerator.initParams:Ljava/security/spec/AlgorithmParameterSpec;
aload 0
getfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
20: goto 28
StackMap locals:
StackMap stack:
21: aload 0
getfield javax.crypto.KeyGenerator.initType:I
iconst_2
if_icmpne 24
22: aload 6
aload 0
getfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/SecureRandom;)V
23: goto 28
StackMap locals:
StackMap stack:
24: aload 0
getfield javax.crypto.KeyGenerator.initType:I
iconst_1
if_icmpeq 28
25: new java.lang.AssertionError
dup
26: new java.lang.StringBuilder
dup
ldc "KeyGenerator initType: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.crypto.KeyGenerator.initType:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
28: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
putfield javax.crypto.KeyGenerator.provider:Ljava/security/Provider;
29: aload 0
aload 6
putfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
30: aload 6
31: aload 3
monitorexit
32: areturn
end local 6 end local 5 33: StackMap locals: javax.crypto.KeyGenerator javax.crypto.KeyGeneratorSpi int java.lang.Object java.security.Provider$Service
StackMap stack: java.lang.Exception
pop
end local 4 34: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
35: aload 0
invokevirtual javax.crypto.KeyGenerator.disableFailover:()V
36: aload 3
monitorexit
37: aconst_null
areturn
38: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
39: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Ljavax/crypto/KeyGenerator;
0 40 1 oldSpi Ljavax/crypto/KeyGeneratorSpi;
0 40 2 reinit Z
8 34 4 s Ljava/security/Provider$Service;
11 33 5 inst Ljava/lang/Object;
14 33 6 spi Ljavax/crypto/KeyGeneratorSpi;
Exception table:
from to target type
10 12 33 Class java.lang.Exception
13 31 33 Class java.lang.Exception
1 3 38 any
4 6 38 any
7 32 38 any
33 37 38 any
38 39 38 any
MethodParameters:
Name Flags
oldSpi
reinit
void disableFailover();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
1: aload 0
iconst_0
putfield javax.crypto.KeyGenerator.initType:I
2: aload 0
aconst_null
putfield javax.crypto.KeyGenerator.initParams:Ljava/security/spec/AlgorithmParameterSpec;
3: aload 0
aconst_null
putfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/KeyGenerator;
public final void init(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
ifnonnull 3
1: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
aload 1
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/SecureRandom;)V
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
astore 3
start local 3 5: StackMap locals: java.lang.RuntimeException javax.crypto.KeyGeneratorSpi
StackMap stack:
aload 3
aload 1
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/SecureRandom;)V
6: aload 0
iconst_2
putfield javax.crypto.KeyGenerator.initType:I
7: aload 0
iconst_0
putfield javax.crypto.KeyGenerator.initKeySize:I
8: aload 0
aconst_null
putfield javax.crypto.KeyGenerator.initParams:Ljava/security/spec/AlgorithmParameterSpec;
9: aload 0
aload 1
putfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
10: return
11: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 4
start local 4 12: aload 2
ifnonnull 14
13: aload 4
astore 2
14: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 0
aload 3
iconst_0
invokevirtual javax.crypto.KeyGenerator.nextSpi:(Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
astore 3
end local 4 15: aload 3
ifnonnull 5
16: aload 2
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/crypto/KeyGenerator;
0 17 1 random Ljava/security/SecureRandom;
4 17 2 failure Ljava/lang/RuntimeException;
5 17 3 mySpi Ljavax/crypto/KeyGeneratorSpi;
12 15 4 e Ljava/lang/RuntimeException;
Exception table:
from to target type
5 10 11 Class java.lang.RuntimeException
MethodParameters:
Name Flags
random
public final void init(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic sun.security.jca.JCAUtil.getSecureRandom:()Ljava/security/SecureRandom;
invokevirtual javax.crypto.KeyGenerator.init:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/KeyGenerator;
0 2 1 params Ljava/security/spec/AlgorithmParameterSpec;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
public final void init(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
ifnonnull 3
1: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
aload 1
aload 2
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 4: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
astore 4
start local 4 5: StackMap locals: java.lang.Exception javax.crypto.KeyGeneratorSpi
StackMap stack:
aload 4
aload 1
aload 2
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
6: aload 0
iconst_3
putfield javax.crypto.KeyGenerator.initType:I
7: aload 0
iconst_0
putfield javax.crypto.KeyGenerator.initKeySize:I
8: aload 0
aload 1
putfield javax.crypto.KeyGenerator.initParams:Ljava/security/spec/AlgorithmParameterSpec;
9: aload 0
aload 2
putfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
10: return
11: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 12: aload 3
ifnonnull 14
13: aload 5
astore 3
14: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
aload 4
iconst_0
invokevirtual javax.crypto.KeyGenerator.nextSpi:(Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
astore 4
end local 5 15: aload 4
ifnonnull 5
16: aload 3
instanceof java.security.InvalidAlgorithmParameterException
ifeq 18
17: aload 3
checkcast java.security.InvalidAlgorithmParameterException
athrow
18: StackMap locals:
StackMap stack:
aload 3
instanceof java.lang.RuntimeException
ifeq 20
19: aload 3
checkcast java.lang.RuntimeException
athrow
20: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
ldc "init() failed"
aload 3
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;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 21 0 this Ljavax/crypto/KeyGenerator;
0 21 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 21 2 random Ljava/security/SecureRandom;
4 21 3 failure Ljava/lang/Exception;
5 21 4 mySpi Ljavax/crypto/KeyGeneratorSpi;
12 15 5 e Ljava/lang/Exception;
Exception table:
from to target type
5 10 11 Class java.lang.Exception
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
public final void init(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic sun.security.jca.JCAUtil.getSecureRandom:()Ljava/security/SecureRandom;
invokevirtual javax.crypto.KeyGenerator.init:(ILjava/security/SecureRandom;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/KeyGenerator;
0 2 1 keysize I
MethodParameters:
Name Flags
keysize
public final void init(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
ifnonnull 3
1: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
iload 1
aload 2
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(ILjava/security/SecureRandom;)V
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 4: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
astore 4
start local 4 5: StackMap locals: java.lang.RuntimeException javax.crypto.KeyGeneratorSpi
StackMap stack:
aload 4
iload 1
aload 2
invokevirtual javax.crypto.KeyGeneratorSpi.engineInit:(ILjava/security/SecureRandom;)V
6: aload 0
iconst_4
putfield javax.crypto.KeyGenerator.initType:I
7: aload 0
iload 1
putfield javax.crypto.KeyGenerator.initKeySize:I
8: aload 0
aconst_null
putfield javax.crypto.KeyGenerator.initParams:Ljava/security/spec/AlgorithmParameterSpec;
9: aload 0
aload 2
putfield javax.crypto.KeyGenerator.initRandom:Ljava/security/SecureRandom;
10: return
11: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 5
start local 5 12: aload 3
ifnonnull 14
13: aload 5
astore 3
14: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 0
aload 4
iconst_0
invokevirtual javax.crypto.KeyGenerator.nextSpi:(Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
astore 4
end local 5 15: aload 4
ifnonnull 5
16: aload 3
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/crypto/KeyGenerator;
0 17 1 keysize I
0 17 2 random Ljava/security/SecureRandom;
4 17 3 failure Ljava/lang/RuntimeException;
5 17 4 mySpi Ljavax/crypto/KeyGeneratorSpi;
12 15 5 e Ljava/lang/RuntimeException;
Exception table:
from to target type
5 10 11 Class java.lang.RuntimeException
MethodParameters:
Name Flags
keysize
random
public final javax.crypto.SecretKey generateKey();
descriptor: ()Ljavax/crypto/SecretKey;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield javax.crypto.KeyGenerator.serviceIterator:Ljava/util/Iterator;
ifnonnull 2
1: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
invokevirtual javax.crypto.KeyGeneratorSpi.engineGenerateKey:()Ljavax/crypto/SecretKey;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
getfield javax.crypto.KeyGenerator.spi:Ljavax/crypto/KeyGeneratorSpi;
astore 2
start local 2 4: StackMap locals: java.lang.RuntimeException javax.crypto.KeyGeneratorSpi
StackMap stack:
aload 2
invokevirtual javax.crypto.KeyGeneratorSpi.engineGenerateKey:()Ljavax/crypto/SecretKey;
5: areturn
6: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 3
start local 3 7: aload 1
ifnonnull 9
8: aload 3
astore 1
9: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 0
aload 2
iconst_1
invokevirtual javax.crypto.KeyGenerator.nextSpi:(Ljavax/crypto/KeyGeneratorSpi;Z)Ljavax/crypto/KeyGeneratorSpi;
astore 2
end local 3 10: aload 2
ifnonnull 4
11: aload 1
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/crypto/KeyGenerator;
3 12 1 failure Ljava/lang/RuntimeException;
4 12 2 mySpi Ljavax/crypto/KeyGeneratorSpi;
7 10 3 e Ljava/lang/RuntimeException;
Exception table:
from to target type
4 5 6 Class java.lang.RuntimeException
}
SourceFile: "KeyGenerator.java"
InnerClasses:
public Service = java.security.Provider$Service of java.security.Provider
public final Instance = sun.security.jca.GetInstance$Instance of sun.security.jca.GetInstance