Package io.vertx.reactivex.ext.auth
Class VertxContextPRNG
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.prng.VertxContextPRNG
-
- io.vertx.reactivex.ext.auth.VertxContextPRNG
-
- All Implemented Interfaces:
RxDelegate
@Deprecated public class VertxContextPRNG extends VertxContextPRNG implements RxDelegate
Deprecated.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 RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<VertxContextPRNG>__TYPE_ARGDeprecated.
-
Constructor Summary
Constructors Constructor Description VertxContextPRNG(VertxContextPRNG delegate)Deprecated.VertxContextPRNG(Object delegate)Deprecated.
-
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)Deprecated.VertxContextPRNGgetDelegate()Deprecated.inthashCode()Deprecated.static VertxContextPRNGnewInstance(VertxContextPRNG arg)Deprecated.StringtoString()Deprecated.-
Methods inherited from class io.vertx.reactivex.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
Deprecated.
-
-
Constructor Detail
-
VertxContextPRNG
public VertxContextPRNG(VertxContextPRNG delegate)
Deprecated.
-
VertxContextPRNG
public VertxContextPRNG(Object delegate)
Deprecated.
-
-
Method Detail
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classVertxContextPRNG
-
equals
public boolean equals(Object o)
Deprecated.- Overrides:
equalsin classVertxContextPRNG
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classVertxContextPRNG
-
getDelegate
public VertxContextPRNG getDelegate()
Deprecated.- Specified by:
getDelegatein interfaceRxDelegate- Overrides:
getDelegatein classVertxContextPRNG
-
current
@Deprecated public static VertxContextPRNG current()
Deprecated.Get or create a secure non blocking random number generator using the current vert.x context. If there is no current context (i.e.: not running on the eventloop) then aIllegalStateExceptionis thrown. Note, if a context isn't allowed to be used, for example, exceptions are thrown on getting and putting data, the VertxContextPRNG falls back to instantiate a new instance of the PRNG per call.- Returns:
- A secure non blocking random number generator.
-
current
@Deprecated public static VertxContextPRNG current(Vertx vertx)
Deprecated.Get or create a secure non blocking random number generator using the current vert.x instance. Since the context might be different this method will attempt to use the current context first if available and then fall back to create a new instance of the PRNG. Note, if a context isn't allowed to be used, for example, exceptions are thrown on getting and putting data, the VertxContextPRNG falls back to instantiate a new instance of the PRNG per call.- Parameters:
vertx- a Vert.x instance.- Returns:
- A secure non blocking random number generator.
-
newInstance
public static VertxContextPRNG newInstance(VertxContextPRNG arg)
Deprecated.
-
-