Package io.vertx.mutiny.ext.auth
Class VertxContextPRNG
java.lang.Object
io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
io.vertx.mutiny.ext.auth.VertxContextPRNG
- All Implemented Interfaces:
MutinyDelegate
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 VertxContextPRNGDeprecated.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()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classVertxContextPRNG- Returns:
- the delegate used by this Mutiny object of generated type
-
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
-