Package io.vertx.ext.auth.otp

## Interface OtpKeyGenerator

-     public interface OtpKeyGenerator

  Otp key generator.
  Author:
    Dmitry Novikov

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static OtpKeyGenerator` | `create()` | Creates an instance of OtpKeyGenerator.
    `static OtpKeyGenerator` | `create​(String algorithm)` | Creates an instance of OtpKeyGenerator.
    `OtpKey` | `generate()` | Generate key with default size;
    `OtpKey` | `generate​(int keySize)` | Generate key
    `String` | `getAlgorithm()` |

- - ### Method Detail

    - #### generate

          OtpKey generate()

      Generate key with default size;
      Returns:
        `OtpKey`

    - #### generate

          OtpKey generate​(int keySize)

      Generate key
      Parameters:
        `keySize` - size of key
      Returns:
        `OtpKey`

    - #### getAlgorithm

          String getAlgorithm()

    - #### create

          static OtpKeyGenerator create()

      Creates an instance of OtpKeyGenerator.
      Returns:
        the created instance of `OtpKeyGenerator`.

    - #### create

          static OtpKeyGenerator create​(String algorithm)

      Creates an instance of OtpKeyGenerator.
      Parameters:
        `algorithm` - used hash algorithm.
      Returns:
        the created instance of `OtpKeyGenerator`.