All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.samstevens.totp.code.CodeVerifier Maven / Gradle / Ivy

Go to download

A library to help implement time-based one time passwords to enable MFA.

There is a newer version: 1.7.1
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy