dev.samstevens.totp.code.CodeVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of totp Show documentation
Show all versions of totp Show documentation
A library to help implement time-based one time passwords to enable MFA.
package dev.samstevens.totp.code;
public interface CodeVerifier {
/**
* @param secret The shared secret/key to check the code against.
* @param code The n-digit code given by the end user to check.
* @return If the code is valid or not.
*/
boolean isValidCode(String secret, String code);
}