WARNING: INTERFACE CHANGE IN PREVIOUS COMMIT
This commit is contained in:
parent
fb2923f761
commit
23c3ae8ea6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user