WARNING: INTERFACE CHANGE IN PREVIOUS COMMIT

This commit is contained in:
TheArrayser 2023-06-28 17:02:35 +02:00
parent fb2923f761
commit 23c3ae8ea6

View File

@ -46,7 +46,7 @@ public abstract class OTP {
* @param periodInSeconds OPTIONAL (default 30) for TOTP, the refresh rate of the TOTP
* @param checksum OPTIONAL: appends a checksum digit to the end of the string
* @return returns a String containing the OTP Digits and the optional checksum at the end
*/
*/
public static OTP createNewOTP(OTPType type, String secret, OTPAlgorithm algorithm, int digits, long counter, long periodInSeconds, boolean checksum) throws OTPException{
if(type == null) return null;
return type.instance(secret, algorithm, digits, counter, periodInSeconds, checksum);