Class OtpKeyGenerator

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate

    public class OtpKeyGenerator
    extends Object
    implements io.vertx.lang.rx.RxDelegate
    Otp key generator.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<OtpKeyGenerator> __TYPE_ARG
    • Constructor Detail

      • OtpKeyGenerator

        public OtpKeyGenerator​(Object delegate)
    • Method Detail

      • hashCode

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

        public OtpKeyGenerator getDelegate()
        Specified by:
        getDelegate in interface io.vertx.lang.rx.RxDelegate
      • generate

        public OtpKey generate()
        Generate key with default size;
        Returns:
        OtpKey
      • generate

        public OtpKey generate​(int keySize)
        Generate key
        Parameters:
        keySize - size of key
        Returns:
        OtpKey
      • getAlgorithm

        public String getAlgorithm()
      • create

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