Class VertxContextPRNG

java.lang.Object
io.vertx.mutiny.ext.auth.prng.VertxContextPRNG
io.vertx.mutiny.ext.auth.VertxContextPRNG
All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate

@Deprecated public class VertxContextPRNG extends VertxContextPRNG implements io.smallrye.mutiny.vertx.MutinyDelegate
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 the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.smallrye.mutiny.vertx.TypeArg<VertxContextPRNG> __TYPE_ARG
      Deprecated.
  • Constructor Details

    • VertxContextPRNG

      public VertxContextPRNG(io.vertx.ext.auth.VertxContextPRNG delegate)
      Deprecated.
    • VertxContextPRNG

      public VertxContextPRNG(Object delegate)
      Deprecated.
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.VertxContextPRNG getDelegate()
      Deprecated.
      Specified by:
      getDelegate in interface io.smallrye.mutiny.vertx.MutinyDelegate
      Overrides:
      getDelegate in class VertxContextPRNG
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class VertxContextPRNG
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class VertxContextPRNG
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class VertxContextPRNG
    • current

      @Deprecated public static VertxContextPRNG current()
      Deprecated.
      Returns:
      A secure non blocking random number generator.
    • current

      @Deprecated public static VertxContextPRNG current(io.vertx.mutiny.core.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)
      Deprecated.