public class io.vertx.ext.auth.PRNG implements io.vertx.ext.auth.VertxContextPRNG
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.auth.PRNG
super_class: java.lang.Object
{
private static final int DEFAULT_SEED_INTERVAL_MILLIS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 300000
private static final int DEFAULT_SEED_BITS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 64
private final java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long seedID;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean dirty;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield io.vertx.ext.auth.PRNG.dirty:Z
2: aload 0
aload 1
putfield io.vertx.ext.auth.PRNG.vertx:Lio/vertx/core/Vertx;
3: ldc "io.vertx.ext.auth.prng.algorithm"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 4: ldc "io.vertx.ext.auth.prng.seed.interval"
ldc 300000
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 3
start local 3 5: ldc "io.vertx.ext.auth.prng.seed.bits"
bipush 64
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 6: aload 2
ifnull 11
7: aload 0
aload 2
invokestatic java.security.SecureRandom.getInstance:(Ljava/lang/String;)Ljava/security/SecureRandom;
putfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
8: goto 12
StackMap locals: io.vertx.ext.auth.PRNG io.vertx.core.Vertx java.lang.String int int
StackMap stack: java.security.NoSuchAlgorithmException
9: astore 5
start local 5 10: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 11: StackMap locals:
StackMap stack:
aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
12: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
iconst_1
newarray 8
invokevirtual java.security.SecureRandom.nextBytes:([B)V
13: iload 3
ifle 20
iload 4
ifle 20
14: new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
astore 5
start local 5 15: aload 0
aload 1
16: iload 3
i2l
17: aload 0
aload 5
aload 1
iload 4
invokedynamic handle(Lio/vertx/ext/auth/PRNG;Ljava/util/concurrent/atomic/AtomicBoolean;Lio/vertx/core/Vertx;I)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/auth/PRNG.lambda$0(Ljava/util/concurrent/atomic/AtomicBoolean;Lio/vertx/core/Vertx;ILjava/lang/Long;)V (7)
(Ljava/lang/Long;)V
18: invokeinterface io.vertx.core.Vertx.setPeriodic:(JLio/vertx/core/Handler;)J
putfield io.vertx.ext.auth.PRNG.seedID:J
end local 5 19: goto 21
20: StackMap locals:
StackMap stack:
aload 0
ldc -1
putfield io.vertx.ext.auth.PRNG.seedID:J
21: 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 22 0 this Lio/vertx/ext/auth/PRNG;
0 22 1 vertx Lio/vertx/core/Vertx;
4 22 2 algorithm Ljava/lang/String;
5 22 3 seedInterval I
6 22 4 seedBits I
10 11 5 e Ljava/security/NoSuchAlgorithmException;
15 19 5 seeding Ljava/util/concurrent/atomic/AtomicBoolean;
Exception table:
from to target type
7 8 9 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
vertx
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.PRNG.seedID:J
ldc -1
lcmp
ifeq 2
1: aload 0
getfield io.vertx.ext.auth.PRNG.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.auth.PRNG.seedID:J
invokeinterface io.vertx.core.Vertx.cancelTimer:(J)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/PRNG;
public void nextBytes(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
1: aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
aload 1
invokevirtual java.security.SecureRandom.nextBytes:([B)V
2: aload 0
iconst_1
putfield io.vertx.ext.auth.PRNG.dirty:Z
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/PRNG;
0 4 1 bytes [B
MethodParameters:
Name Flags
bytes
public int nextInt();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
invokevirtual java.security.SecureRandom.nextInt:()I
istore 1
start local 1 1: aload 0
iconst_1
putfield io.vertx.ext.auth.PRNG.dirty:Z
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/PRNG;
1 3 1 rand I
public int nextInt(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
iload 1
invokevirtual java.security.SecureRandom.nextInt:(I)I
istore 2
start local 2 1: aload 0
iconst_1
putfield io.vertx.ext.auth.PRNG.dirty:Z
2: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/PRNG;
0 3 1 bound I
1 3 2 rand I
MethodParameters:
Name Flags
bound final
private void lambda$0(java.util.concurrent.atomic.AtomicBoolean, io.vertx.core.Vertx, int, java.lang.Long);
descriptor: (Ljava/util/concurrent/atomic/AtomicBoolean;Lio/vertx/core/Vertx;ILjava/lang/Long;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 4 0: aload 0
getfield io.vertx.ext.auth.PRNG.dirty:Z
ifeq 6
aload 1
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 6
1: aload 2
2: aload 0
iload 3
invokedynamic handle(Lio/vertx/ext/auth/PRNG;I)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/auth/PRNG.lambda$1(ILio/vertx/core/Promise;)V (7)
(Lio/vertx/core/Promise;)V
3: iconst_0
4: aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/auth/PRNG;Ljava/util/concurrent/atomic/AtomicBoolean;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/auth/PRNG.lambda$2(Ljava/util/concurrent/atomic/AtomicBoolean;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
5: invokeinterface io.vertx.core.Vertx.executeBlocking:(Lio/vertx/core/Handler;ZLio/vertx/core/Handler;)V
6: StackMap locals:
StackMap stack:
return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/ext/auth/PRNG;
0 7 4 id Ljava/lang/Long;
private void lambda$1(int, io.vertx.core.Promise);
descriptor: (ILio/vertx/core/Promise;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 2
aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
iload 1
bipush 8
idiv
invokevirtual java.security.SecureRandom.generateSeed:(I)[B
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/PRNG;
0 1 2 future Lio/vertx/core/Promise<[B>;
private void lambda$2(java.util.concurrent.atomic.AtomicBoolean, io.vertx.core.AsyncResult);
descriptor: (Ljava/util/concurrent/atomic/AtomicBoolean;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 1
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
1: aload 0
iconst_0
putfield io.vertx.ext.auth.PRNG.dirty:Z
2: aload 0
getfield io.vertx.ext.auth.PRNG.random:Ljava/security/SecureRandom;
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast byte[]
invokevirtual java.security.SecureRandom.setSeed:([B)V
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/PRNG;
0 4 2 generateSeed Lio/vertx/core/AsyncResult<[B>;
}
SourceFile: "PRNG.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles