Interface OtpKeyGenerator


  • public interface OtpKeyGenerator
    Otp key generator.
    Author:
    Dmitry Novikov
    • 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​(String algorithm)
        Creates an instance of OtpKeyGenerator.
        Parameters:
        algorithm - used hash algorithm.
        Returns:
        the created instance of OtpKeyGenerator.