class org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper
super_class: java.lang.Object
{
private static final int DEFAULT_MAX_USES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private static final java.lang.String DEFAULT_MAX_USES_STRING;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "100"
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private int maxUses;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int uses;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
2: aload 0
iconst_0
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.uses:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/core/AsynchronousDispatcher$SecureRandomWrapper;
public synchronized int nextInt();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.uses:I
iconst_1
iadd
dup_x1
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.uses:I
aload 0
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
if_icmple 2
1: aload 0
invokevirtual org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.reset:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.random:Ljava/security/SecureRandom;
invokevirtual java.security.SecureRandom.nextInt:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/core/AsynchronousDispatcher$SecureRandomWrapper;
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
ifge 2
1: aload 0
aload 0
invokevirtual org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.getMaxUses:()I
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
2: StackMap locals:
StackMap stack:
aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.random:Ljava/security/SecureRandom;
3: aload 0
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.random:Ljava/security/SecureRandom;
bipush 20
newarray 8
invokevirtual java.security.SecureRandom.nextBytes:([B)V
4: aload 0
iconst_0
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.uses:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jboss/resteasy/core/AsynchronousDispatcher$SecureRandomWrapper;
private int getMaxUses();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: invokestatic org.jboss.resteasy.microprofile.config.ResteasyConfigFactory.getConfig:()Lorg/jboss/resteasy/microprofile/config/ResteasyConfig;
ldc "resteasy.secure.random.max.use"
getstatic org.jboss.resteasy.microprofile.config.ResteasyConfig$SOURCE.SERVLET_CONTEXT:Lorg/jboss/resteasy/microprofile/config/ResteasyConfig$SOURCE;
ldc "100"
invokevirtual org.jboss.resteasy.microprofile.config.ResteasyConfig.getValue:(Ljava/lang/String;Lorg/jboss/resteasy/microprofile/config/ResteasyConfig$SOURCE;Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
end local 1 2: goto 6
3: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
4: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
ldc "resteasy.secure.random.max.use"
bipush 100
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.invalidFormat:(Ljava/lang/String;Ljava/lang/String;)V
5: aload 0
bipush 100
putfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper.maxUses:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jboss/resteasy/core/AsynchronousDispatcher$SecureRandomWrapper;
1 2 1 s Ljava/lang/String;
Exception table:
from to target type
0 2 3 Class java.lang.IllegalArgumentException
}
SourceFile: "AsynchronousDispatcher.java"
NestHost: org.jboss.resteasy.core.AsynchronousDispatcher
InnerClasses:
private SecureRandomWrapper = org.jboss.resteasy.core.AsynchronousDispatcher$SecureRandomWrapper of org.jboss.resteasy.core.AsynchronousDispatcher
public final SOURCE = org.jboss.resteasy.microprofile.config.ResteasyConfig$SOURCE of org.jboss.resteasy.microprofile.config.ResteasyConfig