public class java.security.SecureRandom extends java.util.Random
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.security.SecureRandom
super_class: java.util.Random
{
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 java.security.Provider provider;
descriptor: Ljava/security/Provider;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandomSpi secureRandomSpi;
descriptor: Ljava/security/SecureRandomSpi;
flags: (0x0002) ACC_PRIVATE
private final boolean threadSafe;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static volatile java.security.SecureRandom seedGenerator;
descriptor: Ljava/security/SecureRandom;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4940670005562187
private byte[] state;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.security.MessageDigest digest;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private byte[] randomBytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int randomBytesUsed;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long counter;
descriptor: J
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 java.security.SecureRandom.pdebug:Lsun/security/util/Debug;
2: ldc "engine="
invokestatic sun.security.util.Debug.isOn:(Ljava/lang/String;)Z
ifeq 4
ldc "securerandom"
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 java.security.SecureRandom.skipDebug:Z
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokespecial java.util.Random.<init>:(J)V
1: aload 0
aconst_null
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
2: aload 0
aconst_null
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
3: aload 0
aconst_null
putfield java.security.SecureRandom.digest:Ljava/security/MessageDigest;
4: aload 0
iconst_0
aconst_null
invokevirtual java.security.SecureRandom.getDefaultPRNG:(Z[B)V
5: aload 0
aload 0
invokevirtual java.security.SecureRandom.getThreadSafe:()Z
putfield java.security.SecureRandom.threadSafe:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/security/SecureRandom;
private boolean getThreadSafe();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.provider:Ljava/security/Provider;
ifnull 1
aload 0
getfield java.security.SecureRandom.algorithm:Ljava/lang/String;
ifnonnull 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield java.security.SecureRandom.provider:Ljava/security/Provider;
3: new java.lang.StringBuilder
dup
ldc "SecureRandom."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield java.security.SecureRandom.algorithm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ThreadSafe"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "false"
4: invokevirtual java.security.Provider.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/security/SecureRandom;
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
lconst_0
invokespecial java.util.Random.<init>:(J)V
1: aload 0
aconst_null
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
2: aload 0
aconst_null
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
3: aload 0
aconst_null
putfield java.security.SecureRandom.digest:Ljava/security/MessageDigest;
4: aload 0
iconst_1
aload 1
invokevirtual java.security.SecureRandom.getDefaultPRNG:(Z[B)V
5: aload 0
aload 0
invokevirtual java.security.SecureRandom.getThreadSafe:()Z
putfield java.security.SecureRandom.threadSafe:Z
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/security/SecureRandom;
0 7 1 seed [B
MethodParameters:
Name Flags
seed
private void getDefaultPRNG(boolean, byte[]);
descriptor: (Z[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: invokestatic sun.security.jca.Providers.getProviderList:()Lsun/security/jca/ProviderList;
invokevirtual sun.security.jca.ProviderList.providers:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: java.security.SecureRandom int byte[] java.security.Provider$Service java.lang.String top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Provider
astore 5
start local 5 4: aload 5
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
ldc "SUN"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
5: getstatic sun.security.provider.SunEntries.DEF_SECURE_RANDOM_ALGO:Ljava/lang/String;
astore 4
6: aload 5
ldc "SecureRandom"
aload 4
invokevirtual java.security.Provider.getService:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/Provider$Service;
astore 3
7: goto 13
8: StackMap locals: java.security.SecureRandom int byte[] java.security.Provider$Service java.lang.String java.security.Provider java.util.Iterator
StackMap stack:
aload 5
invokevirtual java.security.Provider.getDefaultSecureRandomService:()Ljava/security/Provider$Service;
astore 3
9: aload 3
ifnull 12
10: aload 3
invokevirtual java.security.Provider$Service.getAlgorithm:()Ljava/lang/String;
astore 4
11: goto 13
end local 5 12: StackMap locals: java.security.SecureRandom int byte[] java.security.Provider$Service java.lang.String top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: StackMap locals: java.security.SecureRandom int byte[] java.security.Provider$Service java.lang.String
StackMap stack:
aload 3
ifnonnull 18
14: ldc "SHA1PRNG"
astore 4
15: aload 0
new sun.security.provider.SecureRandom
dup
invokespecial sun.security.provider.SecureRandom.<init>:()V
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
16: aload 0
invokestatic sun.security.jca.Providers.getSunProvider:()Ljava/security/Provider;
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
17: goto 25
18: StackMap locals:
StackMap stack:
aload 0
19: aload 3
aconst_null
invokevirtual java.security.Provider$Service.newInstance:(Ljava/lang/Object;)Ljava/lang/Object;
20: checkcast java.security.SecureRandomSpi
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
21: aload 0
aload 3
invokevirtual java.security.Provider$Service.getProvider:()Ljava/security/Provider;
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
22: goto 25
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
23: astore 5
start local 5 24: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 25: StackMap locals:
StackMap stack:
iload 1
ifeq 27
26: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 2
invokevirtual java.security.SecureRandomSpi.engineSetSeed:([B)V
27: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/security/SecureRandom;
if_acmpne 29
28: aload 0
aload 4
putfield java.security.SecureRandom.algorithm:Ljava/lang/String;
29: 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 30 0 this Ljava/security/SecureRandom;
0 30 1 setSeed Z
0 30 2 seed [B
1 30 3 prngService Ljava/security/Provider$Service;
2 30 4 prngAlgorithm Ljava/lang/String;
4 12 5 p Ljava/security/Provider;
24 25 5 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
18 22 23 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
setSeed
seed
protected void <init>(java.security.SecureRandomSpi, java.security.Provider);
descriptor: (Ljava/security/SecureRandomSpi;Ljava/security/Provider;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/security/SecureRandom;
0 2 1 secureRandomSpi Ljava/security/SecureRandomSpi;
0 2 2 provider Ljava/security/Provider;
MethodParameters:
Name Flags
secureRandomSpi
provider
private void <init>(java.security.SecureRandomSpi, java.security.Provider, java.lang.String);
descriptor: (Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
lconst_0
invokespecial java.util.Random.<init>:(J)V
1: aload 0
aconst_null
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
2: aload 0
aconst_null
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
3: aload 0
aconst_null
putfield java.security.SecureRandom.digest:Ljava/security/MessageDigest;
4: aload 0
aload 1
putfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
5: aload 0
aload 2
putfield java.security.SecureRandom.provider:Ljava/security/Provider;
6: aload 0
aload 3
putfield java.security.SecureRandom.algorithm:Ljava/lang/String;
7: aload 0
aload 0
invokevirtual java.security.SecureRandom.getThreadSafe:()Z
putfield java.security.SecureRandom.threadSafe:Z
8: getstatic java.security.SecureRandom.skipDebug:Z
ifne 12
getstatic java.security.SecureRandom.pdebug:Lsun/security/util/Debug;
ifnull 12
9: getstatic java.security.SecureRandom.pdebug:Lsun/security/util/Debug;
new java.lang.StringBuilder
dup
ldc "SecureRandom."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc " algorithm from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.security.SecureRandom.getProviderName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokevirtual sun.security.util.Debug.println:(Ljava/lang/String;)V
12: StackMap locals: java.security.SecureRandom java.security.SecureRandomSpi 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 13 0 this Ljava/security/SecureRandom;
0 13 1 secureRandomSpi Ljava/security/SecureRandomSpi;
0 13 2 provider Ljava/security/Provider;
0 13 3 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
secureRandomSpi
provider
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 java.security.SecureRandom.provider:Ljava/security/Provider;
ifnonnull 1
ldc "(no provider)"
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield java.security.SecureRandom.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 Ljava/security/SecureRandom;
public static java.security.SecureRandom getInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, 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: ldc "SecureRandom"
2: ldc Ljava/security/SecureRandomSpi;
aload 0
3: invokestatic sun.security.jca.GetInstance.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Lsun/security/jca/GetInstance$Instance;
astore 1
start local 1 4: new java.security.SecureRandom
dup
aload 1
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
5: aload 1
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
6: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 algorithm Ljava/lang/String;
4 7 1 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
public static java.security.SecureRandom getInstance(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
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 "SecureRandom"
2: ldc Ljava/security/SecureRandomSpi;
aload 0
aload 1
3: invokestatic sun.security.jca.GetInstance.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 java.security.SecureRandom
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
5: aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
6: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;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 java.security.SecureRandom getInstance(java.lang.String, java.security.Provider);
descriptor: (Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
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 "SecureRandom"
2: ldc Ljava/security/SecureRandomSpi;
aload 0
aload 1
3: invokestatic sun.security.jca.GetInstance.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 java.security.SecureRandom
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
5: aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
6: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;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 static java.security.SecureRandom getInstance(java.lang.String, java.security.SecureRandomParameters);
descriptor: (Ljava/lang/String;Ljava/security/SecureRandomParameters;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
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: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "params cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
ldc "SecureRandom"
4: ldc Ljava/security/SecureRandomSpi;
aload 0
aload 1
5: invokestatic sun.security.jca.GetInstance.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Lsun/security/jca/GetInstance$Instance;
astore 2
start local 2 6: new java.security.SecureRandom
dup
aload 2
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
7: aload 2
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
8: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 algorithm Ljava/lang/String;
0 9 1 params Ljava/security/SecureRandomParameters;
6 9 2 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
params
public static java.security.SecureRandom getInstance(java.lang.String, java.security.SecureRandomParameters, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/lang/String;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "params cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
ldc "SecureRandom"
4: ldc Ljava/security/SecureRandomSpi;
aload 0
aload 1
aload 2
5: invokestatic sun.security.jca.GetInstance.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Lsun/security/jca/GetInstance$Instance;
astore 3
start local 3 6: new java.security.SecureRandom
dup
aload 3
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
7: aload 3
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
8: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 algorithm Ljava/lang/String;
0 9 1 params Ljava/security/SecureRandomParameters;
0 9 2 provider Ljava/lang/String;
6 9 3 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
MethodParameters:
Name Flags
algorithm
params
provider
public static java.security.SecureRandom getInstance(java.lang.String, java.security.SecureRandomParameters, java.security.Provider);
descriptor: (Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/security/Provider;)Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "null algorithm name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "params cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
ldc "SecureRandom"
4: ldc Ljava/security/SecureRandomSpi;
aload 0
aload 1
aload 2
5: invokestatic sun.security.jca.GetInstance.getInstance:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;Ljava/security/Provider;)Lsun/security/jca/GetInstance$Instance;
astore 3
start local 3 6: new java.security.SecureRandom
dup
aload 3
getfield sun.security.jca.GetInstance$Instance.impl:Ljava/lang/Object;
checkcast java.security.SecureRandomSpi
7: aload 3
getfield sun.security.jca.GetInstance$Instance.provider:Ljava/security/Provider;
aload 0
8: invokespecial java.security.SecureRandom.<init>:(Ljava/security/SecureRandomSpi;Ljava/security/Provider;Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 algorithm Ljava/lang/String;
0 9 1 params Ljava/security/SecureRandomParameters;
0 9 2 provider Ljava/security/Provider;
6 9 3 instance Lsun/security/jca/GetInstance$Instance;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
params
provider
public final java.security.Provider getProvider();
descriptor: ()Ljava/security/Provider;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.provider:Ljava/security/Provider;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/security/SecureRandom;
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.algorithm:Ljava/lang/String;
ldc "unknown"
invokestatic java.util.Objects.toString:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/security/SecureRandom;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
invokevirtual java.security.SecureRandomSpi.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/security/SecureRandom;
public java.security.SecureRandomParameters getParameters();
descriptor: ()Ljava/security/SecureRandomParameters;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
invokevirtual java.security.SecureRandomSpi.engineGetParameters:()Ljava/security/SecureRandomParameters;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/security/SecureRandom;
public void setSeed(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 3
1: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineSetSeed:([B)V
2: goto 9
3: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
4: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineSetSeed:([B)V
5: aload 2
monitorexit
6: goto 9
StackMap locals: java.security.SecureRandom byte[] java.security.SecureRandom
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/security/SecureRandom;
0 10 1 seed [B
Exception table:
from to target type
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
seed
public void setSeed(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifeq 2
1: aload 0
lload 1
invokestatic java.security.SecureRandom.longToByteArray:(J)[B
invokevirtual java.security.SecureRandom.setSeed:([B)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/security/SecureRandom;
0 3 1 seed J
MethodParameters:
Name Flags
seed
public void nextBytes(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 3
1: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineNextBytes:([B)V
2: goto 9
3: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
4: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineNextBytes:([B)V
5: aload 2
monitorexit
6: goto 9
StackMap locals: java.security.SecureRandom byte[] java.security.SecureRandom
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/security/SecureRandom;
0 10 1 bytes [B
Exception table:
from to target type
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
bytes
public void nextBytes(byte[], java.security.SecureRandomParameters);
descriptor: ([BLjava/security/SecureRandomParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "params cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 7
3: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
4: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
aload 2
5: invokevirtual java.security.SecureRandomSpi.engineNextBytes:([BLjava/security/SecureRandomParameters;)V
6: goto 15
7: StackMap locals:
StackMap stack:
aload 0
dup
astore 3
monitorenter
8: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
9: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
aload 2
10: invokevirtual java.security.SecureRandomSpi.engineNextBytes:([BLjava/security/SecureRandomParameters;)V
11: aload 3
monitorexit
12: goto 15
StackMap locals: java.security.SecureRandom byte[] java.security.SecureRandomParameters java.security.SecureRandom
StackMap stack: java.lang.Throwable
13: aload 3
monitorexit
14: athrow
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 Ljava/security/SecureRandom;
0 16 1 bytes [B
0 16 2 params Ljava/security/SecureRandomParameters;
Exception table:
from to target type
8 12 13 any
13 14 13 any
MethodParameters:
Name Flags
bytes
params
protected final int next(int);
descriptor: (I)I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iload 1
bipush 7
iadd
bipush 8
idiv
istore 2
start local 2 1: iload 2
newarray 8
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: aload 0
aload 3
invokevirtual java.security.SecureRandom.nextBytes:([B)V
4: iconst_0
istore 5
start local 5 5: goto 8
6: StackMap locals: java.security.SecureRandom int int byte[] int int
StackMap stack:
iload 4
bipush 8
ishl
aload 3
iload 5
baload
sipush 255
iand
iadd
istore 4
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 2
if_icmplt 6
end local 5 9: iload 4
iload 2
bipush 8
imul
iload 1
isub
iushr
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/security/SecureRandom;
0 10 1 numBits I
1 10 2 numBytes I
2 10 3 b [B
3 10 4 next I
5 9 5 i I
MethodParameters:
Name Flags
numBits
public static byte[] getSeed(int);
descriptor: (I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic java.security.SecureRandom.seedGenerator:Ljava/security/SecureRandom;
astore 1
start local 1 1: aload 1
ifnonnull 4
2: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
astore 1
3: aload 1
putstatic java.security.SecureRandom.seedGenerator:Ljava/security/SecureRandom;
4: StackMap locals: java.security.SecureRandom
StackMap stack:
aload 1
iload 0
invokevirtual java.security.SecureRandom.generateSeed:(I)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 numBytes I
1 5 1 seedGen Ljava/security/SecureRandom;
MethodParameters:
Name Flags
numBytes
public byte[] generateSeed(int);
descriptor: (I)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "numBytes cannot be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 4
3: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
iload 1
invokevirtual java.security.SecureRandomSpi.engineGenerateSeed:(I)[B
areturn
4: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
5: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
iload 1
invokevirtual java.security.SecureRandomSpi.engineGenerateSeed:(I)[B
aload 2
monitorexit
6: areturn
7: StackMap locals: java.security.SecureRandom int java.security.SecureRandom
StackMap stack: java.lang.Throwable
aload 2
monitorexit
8: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/security/SecureRandom;
0 9 1 numBytes I
Exception table:
from to target type
5 6 7 any
7 8 7 any
MethodParameters:
Name Flags
numBytes
private static byte[] longToByteArray(long);
descriptor: (J)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: bipush 8
newarray 8
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 6
3: StackMap locals: byte[] int
StackMap stack:
aload 2
iload 3
lload 0
l2i
i2b
bastore
4: lload 0
bipush 8
lshr
lstore 0
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
bipush 8
if_icmplt 3
end local 3 7: aload 2
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 l J
1 8 2 retVal [B
2 7 3 i I
MethodParameters:
Name Flags
l
public static java.security.SecureRandom getInstanceStrong();
descriptor: ()Ljava/security/SecureRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=0
0: new java.security.SecureRandom$1
dup
invokespecial java.security.SecureRandom$1.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 2: aload 0
ifnull 3
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 6
3: StackMap locals: java.lang.String
StackMap stack:
new java.security.NoSuchAlgorithmException
dup
4: ldc "Null/empty securerandom.strongAlgorithms Security Property"
5: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
astore 1
start local 1 7: goto 23
8: StackMap locals: java.lang.String
StackMap stack:
getstatic java.security.SecureRandom$StrongPatternHolder.pattern:Ljava/util/regex/Pattern;
9: aload 1
10: invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
dup
astore 2
start local 2 11: invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 22
12: aload 2
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 3
start local 3 13: aload 2
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 4
start local 4 14: aload 4
ifnonnull 17
15: aload 3
invokestatic java.security.SecureRandom.getInstance:(Ljava/lang/String;)Ljava/security/SecureRandom;
16: areturn
17: StackMap locals: java.util.regex.Matcher java.lang.String java.lang.String
StackMap stack:
aload 3
aload 4
invokestatic java.security.SecureRandom.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;
18: areturn
19: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
pop
20: aload 2
iconst_5
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 1
end local 4 end local 3 21: goto 23
22: StackMap locals:
StackMap stack:
aconst_null
astore 1
end local 2 23: StackMap locals:
StackMap stack:
aload 1
ifnonnull 8
24: new java.security.NoSuchAlgorithmException
dup
25: new java.lang.StringBuilder
dup
ldc "No strong SecureRandom impls available: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
2 27 0 property Ljava/lang/String;
7 27 1 remainder Ljava/lang/String;
11 23 2 m Ljava/util/regex/Matcher;
13 21 3 alg Ljava/lang/String;
14 21 4 prov Ljava/lang/String;
Exception table:
from to target type
14 16 19 Class java.security.NoSuchAlgorithmException
17 18 19 Class java.security.NoSuchAlgorithmException
14 16 19 Class java.security.NoSuchProviderException
17 18 19 Class java.security.NoSuchProviderException
Exceptions:
throws java.security.NoSuchAlgorithmException
public void reseed();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 3
1: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aconst_null
invokevirtual java.security.SecureRandomSpi.engineReseed:(Ljava/security/SecureRandomParameters;)V
2: goto 9
3: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
4: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aconst_null
invokevirtual java.security.SecureRandomSpi.engineReseed:(Ljava/security/SecureRandomParameters;)V
5: aload 1
monitorexit
6: goto 9
StackMap locals: java.security.SecureRandom java.security.SecureRandom
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/security/SecureRandom;
Exception table:
from to target type
4 6 7 any
7 8 7 any
public void reseed(java.security.SecureRandomParameters);
descriptor: (Ljava/security/SecureRandomParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "params cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.security.SecureRandom.threadSafe:Z
ifeq 5
3: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineReseed:(Ljava/security/SecureRandomParameters;)V
4: goto 11
5: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
6: aload 0
getfield java.security.SecureRandom.secureRandomSpi:Ljava/security/SecureRandomSpi;
aload 1
invokevirtual java.security.SecureRandomSpi.engineReseed:(Ljava/security/SecureRandomParameters;)V
7: aload 2
monitorexit
8: goto 11
StackMap locals: java.security.SecureRandom java.security.SecureRandomParameters java.security.SecureRandom
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/security/SecureRandom;
0 12 1 params Ljava/security/SecureRandomParameters;
Exception table:
from to target type
6 8 9 any
9 10 9 any
MethodParameters:
Name Flags
params
}
SourceFile: "SecureRandom.java"
NestMembers:
java.security.SecureRandom$1 java.security.SecureRandom$StrongPatternHolder
InnerClasses:
public Service = java.security.Provider$Service of java.security.Provider
java.security.SecureRandom$1
private final StrongPatternHolder = java.security.SecureRandom$StrongPatternHolder of java.security.SecureRandom
public final Instance = sun.security.jca.GetInstance$Instance of sun.security.jca.GetInstance