Package io.vertx.mutiny.ext.auth
Class VertxContextPRNG
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
-
- io.vertx.mutiny.ext.auth.VertxContextPRNG
-
public class VertxContextPRNG extends VertxContextPRNG
A secure non blocking random number generator isolated to the current context. The PRNG is bound to the vert.x context and setup to close when the context shuts down.When applicable, use of VertxContextPRNG rather than create new PRNG objects is helpful to keep the system entropy usage to the minimum avoiding potential blocking across the application.
The use of VertxContextPRNG is particularly appropriate when multiple handlers use random numbers.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<VertxContextPRNG>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description VertxContextPRNG(io.vertx.ext.auth.VertxContextPRNG delegate)
VertxContextPRNG(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VertxContextPRNG
current()
Deprecated.static VertxContextPRNG
current(Vertx vertx)
Deprecated.boolean
equals(Object o)
io.vertx.ext.auth.VertxContextPRNG
getDelegate()
int
hashCode()
static VertxContextPRNG
newInstance(io.vertx.ext.auth.VertxContextPRNG arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
close, newInstance, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextString
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<VertxContextPRNG> __TYPE_ARG
-
-
Constructor Detail
-
VertxContextPRNG
public VertxContextPRNG(io.vertx.ext.auth.VertxContextPRNG delegate)
-
VertxContextPRNG
public VertxContextPRNG(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.VertxContextPRNG getDelegate()
- Overrides:
getDelegate
in classVertxContextPRNG
-
toString
public String toString()
- Overrides:
toString
in classVertxContextPRNG
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classVertxContextPRNG
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classVertxContextPRNG
-
current
@Deprecated public static VertxContextPRNG current()
Deprecated.- Returns:
- A secure non blocking random number generator.
-
current
@Deprecated public static VertxContextPRNG current(Vertx vertx)
Deprecated.- Parameters:
vertx
- a Vert.x instance.- Returns:
- A secure non blocking random number generator.
-
newInstance
public static VertxContextPRNG newInstance(io.vertx.ext.auth.VertxContextPRNG arg)
-
-