Interface OtpKeyGenerator


public interface OtpKeyGenerator
Otp key generator.
Author:
Dmitry Novikov
  • Method Details

    • 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.