Interface OtpService
-
- All Known Implementing Classes:
OtpServiceImpl
public interface OtpServiceOTPService is used to determine if theUserSecretmatches the given validationcode.The base is the TOTP algorithm. We have included a thirdparty library which serves the code for the validity check
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAuthenticatorURI(String secretKey)Generate URI for use in authenticator appsbooleantryVerificationCode(String verificationCode, String secretKey)Use TOTP algorithm to verify validity of secret and verification code.
-
-
-
Method Detail
-
tryVerificationCode
boolean tryVerificationCode(String verificationCode, String secretKey)
Use TOTP algorithm to verify validity of secret and verification code.- Parameters:
verificationCode- given verificationCodesecretKey- generated secret key- Returns:
- vericifcationCode matches secret key
-
-