java.lang.Object
io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
io.vertx.mutiny.ext.auth.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 -
Constructor Summary
ConstructorsConstructorDescriptionVertxContextPRNG(io.vertx.ext.auth.VertxContextPRNG delegate) VertxContextPRNG(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertxContextPRNGcurrent()Deprecated.static VertxContextPRNGcurrent(io.vertx.mutiny.core.Vertx vertx) Deprecated.booleanio.vertx.ext.auth.VertxContextPRNGinthashCode()static VertxContextPRNGnewInstance(io.vertx.ext.auth.VertxContextPRNG arg) toString()Methods inherited from class io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
close, newInstance, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextString
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
VertxContextPRNG
public VertxContextPRNG(io.vertx.ext.auth.VertxContextPRNG delegate) -
VertxContextPRNG
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.VertxContextPRNG getDelegate()- Overrides:
getDelegatein classVertxContextPRNG
-
toString
- Overrides:
toStringin classVertxContextPRNG
-
equals
- Overrides:
equalsin classVertxContextPRNG
-
hashCode
public int hashCode()- Overrides:
hashCodein classVertxContextPRNG
-
current
Deprecated.- Returns:
- A secure non blocking random number generator.
-
current
Deprecated.- Parameters:
vertx- a Vert.x instance.- Returns:
- A secure non blocking random number generator.
-
newInstance
-