public interface OtpService
UserSecret matches the given validationcode.
The base is the TOTP algorithm. We have included a thirdparty library which serves the code for the validity check
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticatorURI(String secretKey)
Generate URI for use in authenticator apps
|
boolean |
tryVerificationCode(String verificationCode,
String secretKey)
Use TOTP algorithm to verify validity of secret and verification code.
|
boolean tryVerificationCode(String verificationCode, String secretKey)
verificationCode - given verificationCodesecretKey - generated secret keyCopyright © 2019 Pivotal Software, Inc.. All rights reserved.