Class OtpKeyGenerator

java.lang.Object
io.vertx.mutiny.ext.auth.otp.OtpKeyGenerator
All Implemented Interfaces:
MutinyDelegate

public class OtpKeyGenerator extends Object implements MutinyDelegate
Otp key generator.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Dmitry Novikov
See Also:
  • OtpKeyGenerator
  • Field Details

  • Constructor Details

    • OtpKeyGenerator

      public OtpKeyGenerator(io.vertx.ext.auth.otp.OtpKeyGenerator delegate)
      Create a new instance of OtpKeyGenerator delegating to the given (non-null) instance of OtpKeyGenerator.
    • OtpKeyGenerator

      public OtpKeyGenerator(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.otp.OtpKeyGenerator getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • generate

      public io.vertx.ext.auth.otp.OtpKey generate()
      Generate key with default size;
      Returns:
      OtpKey
    • generate

      public io.vertx.ext.auth.otp.OtpKey generate(int keySize)
      Generate key
      Parameters:
      keySize - size of key
      Returns:
      OtpKey
    • getAlgorithm

      public String getAlgorithm()
    • create

      public static OtpKeyGenerator create()
      Creates an instance of OtpKeyGenerator.
      Returns:
      the created instance of OtpKeyGenerator.
    • create

      public static OtpKeyGenerator create(String algorithm)
      Creates an instance of OtpKeyGenerator.
      Parameters:
      algorithm - used hash algorithm.
      Returns:
      the created instance of OtpKeyGenerator.
    • newInstance

      public static OtpKeyGenerator newInstance(io.vertx.ext.auth.otp.OtpKeyGenerator delegate)
      Creates a new instance of the OtpKeyGenerator.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object