Class HOTPGenerator.Builder

    • Constructor Detail

      • Builder

        public Builder​(byte[] secret)
    • Method Detail

      • withAlgorithm

        public HOTPGenerator.Builder withAlgorithm​(HMACAlgorithm algorithm)
        Change hashing algorithm
        Parameters:
        algorithm - HMAC hashing algorithm
        Returns:
        concrete builder
      • build

        public HOTPGenerator build()
        Build the generator with specified options
        Returns:
        HOTP