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 theoriginalnon 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 VertxContextPRNGcurrent()Deprecated.static VertxContextPRNGcurrent(Vertx vertx)Deprecated.booleanequals(Object o)io.vertx.ext.auth.VertxContextPRNGgetDelegate()inthashCode()static VertxContextPRNGnewInstance(io.vertx.ext.auth.VertxContextPRNG arg)StringtoString()-
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:
getDelegatein classVertxContextPRNG
-
toString
public String toString()
- Overrides:
toStringin classVertxContextPRNG
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classVertxContextPRNG
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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)
-
-