This class wraps the TOTP and HOTP functions in a method called generateOTP which takes an instance of KeyInfo.